Browse Source

Return 422 for turbo on max login attempts reached

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

2
app/controllers/devise/two_factor_authentication_controller.rb

@ -78,7 +78,7 @@ class Devise::TwoFactorAuthenticationController < DeviseController
@limit = resource.max_login_attempts
if resource.max_login_attempts?
sign_out(resource)
render :max_login_attempts_reached and return
render :max_login_attempts_reached, status: :unprocessable_entity and return
end
end

Loading…
Cancel
Save