Sha256: 4894b8d685f1c4048e218d2631c76e3e64a71431b911f371fb77f495e3f25556

Contents?: true

Size: 650 Bytes

Versions: 3

Compression:

Stored size: 650 Bytes

Contents

<%%= form_with(url: two_factor_authentication_challenge_path) do |form| %>
  <%%= 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(scheme_type: "recovery_codes") %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
authentication-zero-2.16.20 lib/generators/authentication/templates/erb/two_factor_authentication/challenges/_totp_form.html.erb.tt
authentication-zero-2.16.19 lib/generators/authentication/templates/erb/two_factor_authentication/challenges/_totp_form.html.erb.tt
authentication-zero-2.16.18 lib/generators/authentication/templates/erb/two_factor_authentication/challenges/_totp_form.html.erb.tt