diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-19 21:16:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 11:16:40 +0900 |
commit | aef0051fd0723ff03175a8851497056ed07d1a83 (patch) | |
tree | 298dafc17d16340904e8eea4d66600335b1a0e6e /app/controllers/concerns | |
parent | bd1d57c2303b7a5df1af749d8851c9364a044e77 (diff) |
Enable Rubocop HTTP status rules (#23717)
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r-- | app/controllers/concerns/two_factor_authentication_concern.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/concerns/two_factor_authentication_concern.rb b/app/controllers/concerns/two_factor_authentication_concern.rb index e69b67a79..94f3ce00f 100644 --- a/app/controllers/concerns/two_factor_authentication_concern.rb +++ b/app/controllers/concerns/two_factor_authentication_concern.rb @@ -57,10 +57,10 @@ module TwoFactorAuthenticationConcern if valid_webauthn_credential?(user, webauthn_credential) on_authentication_success(user, :webauthn) - render json: { redirect_path: after_sign_in_path_for(user) }, status: :ok + render json: { redirect_path: after_sign_in_path_for(user) }, status: 200 else on_authentication_failure(user, :webauthn, :invalid_credential) - render json: { error: t('webauthn_credentials.invalid_credential') }, status: :unprocessable_entity + render json: { error: t('webauthn_credentials.invalid_credential') }, status: 422 end end |