Sha256: 8bb87b325cf04a127390c37c513fc825b7d796434bd8b3387ee899cf75ddd39c

Contents?: true

Size: 731 Bytes

Versions: 2

Compression:

Stored size: 731 Bytes

Contents

<%%= form_with(url: two_factor_authentication_challenge_path) do |form| %>
  <%%= form.hidden_field :token, value: params[:token] %>
  <%%= form.hidden_field :scheme_type, value: "totp" %>

  <div>
    <%%= form.label :code do %>
      <h1>Next, open the 2FA authenticator app on your phone and type the six digit code below:</h1>
    <%% end %>
    <%%= form.text_field :code, autofocus: true, required: true, autocomplete: :off %>
  </div>

  <div>
    <%%= form.submit "Verify" %>
  </div>
<%% end %>

<div>
  <p><strong>Don't have your phone?</strong></p>
  <%%= link_to "Use a recovery code to access your account.", new_two_factor_authentication_challenge_path(token: params[:token], scheme_type: "recovery_codes") %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
authentication-zero-2.16.17 lib/generators/authentication/templates/erb/two_factor_authentication/challenges/_totp_form.html.erb.tt
authentication-zero-2.16.16 lib/generators/authentication/templates/erb/two_factor_authentication/challenges/_totp_form.html.erb.tt