diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2017-08-31 01:54:16 +0800 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-08-30 13:54:16 -0400 |
commit | 651dd33b29b7b8b296cc5a12479684fa836867b1 (patch) | |
tree | 60d4f385f50ab7f6b8aa75bdb6de2d98508c8784 /app/authentication.go | |
parent | 4c1f4674425ffeb430aa07f3fccbb09837f36a34 (diff) | |
download | chat-651dd33b29b7b8b296cc5a12479684fa836867b1.tar.gz chat-651dd33b29b7b8b296cc5a12479684fa836867b1.tar.bz2 chat-651dd33b29b7b8b296cc5a12479684fa836867b1.zip |
set to default value with config is missing (#7320)
Diffstat (limited to 'app/authentication.go')
-rw-r--r-- | app/authentication.go | 2 |
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) } |