% content_for :title, "Check your email" %> <% url_prefix = resource_name == :user ? "account" : "admin" %> <%= form_with(model: resource, url: "/#{url_prefix}/two-factor-authentication", html: { method: :put }) do |f| %>
We’ve sent you an email with a security code.
<%= f.govuk_number_field :code, label: { text: "Security code", size: "m" }, width: 5, autocomplete: 'one-time-code', autofocus: true %> <%= f.govuk_submit "Submit" %><%= govuk_link_to "Not received an email?", send("#{resource_name}_two_factor_authentication_resend_path") %>