5 changed files with 68 additions and 3 deletions
@ -0,0 +1,5 @@
|
||||
class Auth::TwoFactorAuthenticationController < Devise::TwoFactorAuthenticationController |
||||
def show_resend |
||||
render "devise/two_factor_authentication/resend" |
||||
end |
||||
end |
@ -0,0 +1,23 @@
|
||||
<% content_for :title, "Resend security code" %> |
||||
|
||||
<% content_for :before_content do %> |
||||
<%= govuk_back_link( |
||||
text: 'Back', |
||||
href: 'javascript:history.back()', |
||||
) %> |
||||
<% end %> |
||||
|
||||
<%= form_with(url: resend_code_admin_user_two_factor_authentication_path, html: { method: :get }) do |f| %> |
||||
<div class="govuk-grid-row"> |
||||
<div class="govuk-grid-column-two-thirds"> |
||||
|
||||
<h1 class="govuk-heading-l"> |
||||
<%= content_for(:title) %> |
||||
</h1> |
||||
|
||||
<p class="govuk-body">Text messages sometimes take a few minutes to arrive. If you do not receive the text message, you can request a new one.</p> |
||||
|
||||
<%= f.govuk_submit "Resend security code" %> |
||||
</div> |
||||
</div> |
||||
<% end %> |
Loading…
Reference in new issue