Browse Source

Merge pull request #93 from apoyan/master

set correct devise scope
master
Dmitrii Golub 9 years ago committed by GitHub
parent
commit
1d6abe30a6
  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
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
private

Loading…
Cancel
Save