Fixing code review feedback
Этот коммит содержится в:
@@ -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
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Ссылка в новой задаче
Block a user