diff --git a/app/views/devise/two_factor_authentication/show.html.erb b/app/views/devise/two_factor_authentication/show.html.erb index 552fd7d8..0ffa2248 100644 --- a/app/views/devise/two_factor_authentication/show.html.erb +++ b/app/views/devise/two_factor_authentication/show.html.erb @@ -12,8 +12,8 @@ <% end %> <% if resource.direct_otp %> -<%= link_to "Resend Code", resend_code_user_two_factor_authentication_path, action: :get %> + <%= link_to "Resend Code", send("resend_code_#{resource_name}_two_factor_authentication_path"), action: :get %> <% else %> -<%= link_to "Send me a code instead", resend_code_user_two_factor_authentication_path, action: :get %> +<%= link_to "Send me a code instead", send("resend_code_#{resource_name}_two_factor_authentication_path"), action: :get %> <% end %> -<%= link_to "Sign out", destroy_user_session_path, :method => :delete %> +<%= link_to "Sign out", send("destroy_#{resource_name}_session_path"), :method => :delete %>