Sha256: 50d15b68e29377b73d2fe2570d446d2369e9e393c63fc391c8740529793c1909

Contents?: true

Size: 647 Bytes

Versions: 2

Compression:

Stored size: 647 Bytes

Contents

<% if resource.direct_otp %>
<h2>Enter the code that was sent to you</h2>
<% else %>
<h2>Enter the code from your authenticator app</h2>
<% end %>

<p><%= flash[:notice] %></p>

<%= form_tag([resource_name, :two_factor_authentication], :method => :put) do %>
  <%= text_field_tag :code %>
  <%= submit_tag "Submit" %>
<% end %>

<% if resource.direct_otp %>
<%= link_to "Resend Code", resend_code_user_two_factor_authentication_path, action: :get %>
<% else %>
<%= link_to "Send me a code instead", resend_code_user_two_factor_authentication_path, action: :get %>
<% end %>
<%= link_to "Sign out", destroy_user_session_path, :method => :delete %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
two_factor_authentication-2.0.1 app/views/devise/two_factor_authentication/show.html.erb
two_factor_authentication-2.0.0 app/views/devise/two_factor_authentication/show.html.erb