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/auth | |
parent | bd1d57c2303b7a5df1af749d8851c9364a044e77 (diff) |
Enable Rubocop HTTP status rules (#23717)
Diffstat (limited to 'app/controllers/auth')
-rw-r--r-- | app/controllers/auth/sessions_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/auth/sessions_controller.rb b/app/controllers/auth/sessions_controller.rb index 3ce742638..4f59fd501 100644 --- a/app/controllers/auth/sessions_controller.rb +++ b/app/controllers/auth/sessions_controller.rb @@ -52,9 +52,9 @@ class Auth::SessionsController < Devise::SessionsController session[:webauthn_challenge] = options_for_get.challenge - render json: options_for_get, status: :ok + render json: options_for_get, status: 200 else - render json: { error: t('webauthn_credentials.not_enabled') }, status: :unauthorized + render json: { error: t('webauthn_credentials.not_enabled') }, status: 401 end end |