Fixing code review feedback

This commit is contained in:
=Corey Hulen
2015-07-30 00:46:17 -08:00
parent 4244990bf1
commit b4877c5d36
3 changed files with 8 additions and 3 deletions
+6 -1
View File
@@ -300,9 +300,14 @@ func checkUserPassword(c *Context, user *model.User, password string) bool {
}
return false
} else {
if result := <-Srv.Store.User().UpdateFailedPasswordAttempts(user.Id, 0); result.Err != nil {
c.LogError(result.Err)
}
return true
}
return true
}
// User MUST be validated before calling Login
+1 -1
View File
@@ -22,7 +22,7 @@
"AnalyticsUrl": "",
"UseLocalStorage": true,
"StorageDirectory": "./data/",
"AllowedLoginAttempts": 3
"AllowedLoginAttempts": 10
},
"SSOSettings": {
"gitlab": {
+1 -1
View File
@@ -22,7 +22,7 @@
"AnalyticsUrl": "",
"UseLocalStorage": true,
"StorageDirectory": "/mattermost/data/",
"AllowedLoginAttempts": 3
"AllowedLoginAttempts": 10
},
"SSOSettings": {
"gitlab": {