Sha256: fa37947df3159847ecb7b3095ca6c490002881f0c9f3adeeb37220c88c230858

Contents?: true

Size: 730 Bytes

Versions: 11

Compression:

Stored size: 730 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, '', autofocus: true %>
  <%= 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

11 entries across 11 versions & 2 rubygems

Version Path
devise-multi-factor-3.2.5 app/views/devise/two_factor_authentication/show.html.erb
devise-multi-factor-3.2.4 app/views/devise/two_factor_authentication/show.html.erb
devise-multi-factor-3.2.3 app/views/devise/two_factor_authentication/show.html.erb
devise-multi-factor-3.2.2 app/views/devise/two_factor_authentication/show.html.erb
devise-multi-factor-3.2.1 app/views/devise/two_factor_authentication/show.html.erb
devise_two_factor_authentication-3.0.0 app/views/devise/two_factor_authentication/show.html.erb
devise-multi-factor-3.2.0 app/views/devise/two_factor_authentication/show.html.erb
devise-multi-factor-3.1.8 app/views/devise/two_factor_authentication/show.html.erb
devise-multi-factor-3.1.7 app/views/devise/two_factor_authentication/show.html.erb
devise-multi-factor-3.1.6 app/views/devise/two_factor_authentication/show.html.erb
devise-multi-factor-3.1.5 app/views/devise/two_factor_authentication/show.html.erb