diff --git a/internal/handlers/const.go b/internal/handlers/const.go index 4502e5c99..576327ebe 100644 --- a/internal/handlers/const.go +++ b/internal/handlers/const.go @@ -39,7 +39,6 @@ const ( const ( messageOperationFailed = "Operation failed." messageAuthenticationFailed = "Authentication failed. Check your credentials." - messageUserBanned = "Please retry in a few minutes." messageUnableToRegisterOneTimePassword = "Unable to set up one-time passwords." //nolint:gosec messageUnableToRegisterSecurityKey = "Unable to register your security key." messageUnableToResetPassword = "Unable to reset your password." diff --git a/internal/handlers/handler_firstfactor.go b/internal/handlers/handler_firstfactor.go index f83919647..841813763 100644 --- a/internal/handlers/handler_firstfactor.go +++ b/internal/handlers/handler_firstfactor.go @@ -81,7 +81,7 @@ func FirstFactorPost(msInitialDelay time.Duration, delayEnabled bool) middleware if err != nil { if err == regulation.ErrUserIsBanned { - handleAuthenticationUnauthorized(ctx, fmt.Errorf("User %s is banned until %s", bodyJSON.Username, bannedUntil), messageUserBanned) + handleAuthenticationUnauthorized(ctx, fmt.Errorf("User %s is banned until %s", bodyJSON.Username, bannedUntil), messageAuthenticationFailed) return }