Sha256: 8d5dc0ada8209e7fcb87de4294b3072d555dd1d25ae9ef0b027b7e01e9b9d9fb

Contents?: true

Size: 709 Bytes

Versions: 3

Compression:

Stored size: 709 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", send("resend_code_#{resource_name}_two_factor_authentication_path"), action: :get %>
<% else %>
<%= link_to "Send me a code instead", send("resend_code_#{resource_name}_two_factor_authentication_path"), action: :get %>
<% end %>
<%= link_to "Sign out", send("destroy_#{resource_name}_session_path"), :method => :delete %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
two_factor_authentication-2.2.0 app/views/devise/two_factor_authentication/show.html.erb
two_factor_authentication-2.1.1 app/views/devise/two_factor_authentication/show.html.erb
two_factor_authentication-2.1.0 app/views/devise/two_factor_authentication/show.html.erb