Browse Source

set correct devise scope

master
Tigran Apoyan 9 years ago committed by GitHub
parent
commit
838173a881
  1. 2
      app/controllers/devise/two_factor_authentication_controller.rb

2
app/controllers/devise/two_factor_authentication_controller.rb

@ -17,7 +17,7 @@ class Devise::TwoFactorAuthenticationController < DeviseController
def resend_code def resend_code
resource.send_new_otp resource.send_new_otp
redirect_to user_two_factor_authentication_path, notice: I18n.t('devise.two_factor_authentication.code_has_been_sent') redirect_to send("#{resource_name}_two_factor_authentication_path"), notice: I18n.t('devise.two_factor_authentication.code_has_been_sent')
end end
private private

Loading…
Cancel
Save