% content_for :title, "Resend security code" %> <% content_for :before_content do %> <%= govuk_back_link( text: 'Back', href: 'javascript:history.back()', ) %> <% end %> <%= form_with(url: send("resend_code_#{resource_name}_two_factor_authentication_path"), html: { method: :get }) do |f| %>
Emails sometimes take a few minutes to arrive. If you do not receive the email, you can request a new one.
<%= f.govuk_submit "Resend security code" %>