Browse Source

Return 422 on failed code

pull/2/head
baarkerlounger 3 years ago
parent
commit
9ce2edde3f
  1. 4
      app/controllers/devise/two_factor_authentication_controller.rb

4
app/controllers/devise/two_factor_authentication_controller.rb

@ -63,9 +63,9 @@ class Devise::TwoFactorAuthenticationController < DeviseController
if resource.max_login_attempts?
sign_out(resource)
render :max_login_attempts_reached
render :max_login_attempts_reached, status: :unprocessable_entity
else
render :show
render :show, status: :unprocessable_entity
end
end

Loading…
Cancel
Save