summaryrefslogtreecommitdiffstats
path: root/app/authentication.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/authentication.go')
-rw-r--r--app/authentication.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/authentication.go b/app/authentication.go
index b09234d5f..5319e54e0 100644
--- a/app/authentication.go
+++ b/app/authentication.go
@@ -121,7 +121,7 @@ func CheckUserMfa(user *model.User, token string) *model.AppError {
}
func checkUserLoginAttempts(user *model.User) *model.AppError {
- if user.FailedAttempts >= utils.Cfg.ServiceSettings.MaximumLoginAttempts {
+ if user.FailedAttempts >= *utils.Cfg.ServiceSettings.MaximumLoginAttempts {
return model.NewAppError("checkUserLoginAttempts", "api.user.check_user_login_attempts.too_many.app_error", nil, "user_id="+user.Id, http.StatusUnauthorized)
}