From 651dd33b29b7b8b296cc5a12479684fa836867b1 Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Thu, 31 Aug 2017 01:54:16 +0800 Subject: set to default value with config is missing (#7320) --- app/authentication.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/authentication.go') 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) } -- cgit v1.2.3-1-g7c22