about summary refs log tree commit diff
path: root/app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-19 21:16:40 -0500
committerGitHub <noreply@github.com>2023-02-20 11:16:40 +0900
commitaef0051fd0723ff03175a8851497056ed07d1a83 (patch)
tree298dafc17d16340904e8eea4d66600335b1a0e6e /app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb
parentbd1d57c2303b7a5df1af749d8851c9364a044e77 (diff)
Enable Rubocop HTTP status rules (#23717)
Diffstat (limited to 'app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb')
-rw-r--r--app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb b/app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb
index a50d30f06..e43818c94 100644
--- a/app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb
+++ b/app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb
@@ -27,7 +27,7 @@ module Settings
 
         session[:webauthn_challenge] = options_for_create.challenge
 
-        render json: options_for_create, status: :ok
+        render json: options_for_create, status: 200
       end
 
       def create