Этот коммит содержится в:
=Corey Hulen
2015-07-30 00:46:17 -08:00
родитель 4244990bf1
Коммит b4877c5d36
3 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@@ -300,9 +300,14 @@ func checkUserPassword(c *Context, user *model.User, password string) bool {
} }
return false 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 // User MUST be validated before calling Login

Просмотреть файл

@@ -22,7 +22,7 @@
"AnalyticsUrl": "", "AnalyticsUrl": "",
"UseLocalStorage": true, "UseLocalStorage": true,
"StorageDirectory": "./data/", "StorageDirectory": "./data/",
"AllowedLoginAttempts": 3 "AllowedLoginAttempts": 10
}, },
"SSOSettings": { "SSOSettings": {
"gitlab": { "gitlab": {

Просмотреть файл

@@ -22,7 +22,7 @@
"AnalyticsUrl": "", "AnalyticsUrl": "",
"UseLocalStorage": true, "UseLocalStorage": true,
"StorageDirectory": "/mattermost/data/", "StorageDirectory": "/mattermost/data/",
"AllowedLoginAttempts": 3 "AllowedLoginAttempts": 10
}, },
"SSOSettings": { "SSOSettings": {
"gitlab": { "gitlab": {