This reverts commit acbbd4c58d.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
690cbc9fa3
Коммит
ac10bb12a5
@@ -284,8 +284,8 @@ func (a *App) MFARequired(rctx request.CTX) *model.AppError {
|
||||
return nil
|
||||
}
|
||||
|
||||
func checkUserLoginAttempts(user *model.User, maxAttempts int) *model.AppError {
|
||||
if user.FailedAttempts >= maxAttempts {
|
||||
func checkUserLoginAttempts(user *model.User, max int) *model.AppError {
|
||||
if user.FailedAttempts >= max {
|
||||
return model.NewAppError("checkUserLoginAttempts", "api.user.check_user_login_attempts.too_many.app_error", nil, "user_id="+user.Id, http.StatusUnauthorized)
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user