Sha256: 8771858959ddec7b72db427eed37d43a1f9bf680af704378f007e347a0552a18

Contents?: true

Size: 867 Bytes

Versions: 5

Compression:

Stored size: 867 Bytes

Contents

<p style="color: red"><%%= alert %></p>

<%%= form_with(url: two_factor_authentication_challenge_totp_path) do |form| %>
  <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>
  <div>
    <%%= link_to "Use a recovery code to access your account.", new_two_factor_authentication_challenge_recovery_codes_path %>
  </div>
  <%- if webauthn? %>
  <%% if @user.security_keys.exists? %>
    <div><%%= link_to "Use a security key to access your account.", new_two_factor_authentication_challenge_security_keys_path %></div>
  <%% end %>
  <%- end -%>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
authentication-zero-2.16.25 lib/generators/authentication/templates/erb/two_factor_authentication/challenge/totps/new.html.erb.tt
authentication-zero-2.16.24 lib/generators/authentication/templates/erb/two_factor_authentication/challenge/totps/new.html.erb.tt
authentication-zero-2.16.23 lib/generators/authentication/templates/erb/two_factor_authentication/challenge/totps/new.html.erb.tt
authentication-zero-2.16.22 lib/generators/authentication/templates/erb/two_factor_authentication/challenge/totps/new.html.erb.tt
authentication-zero-2.16.21 lib/generators/authentication/templates/erb/two_factor_authentication/challenge/totps/new.html.erb.tt