mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Fixing code review feedback
This commit is contained in:
+6
-1
@@ -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
@@ -22,7 +22,7 @@
|
||||
"AnalyticsUrl": "",
|
||||
"UseLocalStorage": true,
|
||||
"StorageDirectory": "./data/",
|
||||
"AllowedLoginAttempts": 3
|
||||
"AllowedLoginAttempts": 10
|
||||
},
|
||||
"SSOSettings": {
|
||||
"gitlab": {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"AnalyticsUrl": "",
|
||||
"UseLocalStorage": true,
|
||||
"StorageDirectory": "/mattermost/data/",
|
||||
"AllowedLoginAttempts": 3
|
||||
"AllowedLoginAttempts": 10
|
||||
},
|
||||
"SSOSettings": {
|
||||
"gitlab": {
|
||||
|
||||
Reference in New Issue
Block a user