Sha256: d56e550b7bc96c16fd92ae9f42263ac1c21cc94c54017f17a3e8b7219d5bca34

Contents?: true

Size: 743 Bytes

Versions: 6

Compression:

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
devise_xfactor_authentication-2.2.23 app/views/devise/devise_xfactor_authentication/show.html.erb
devise_xfactor_authentication-2.2.22 app/views/devise/devise_xfactor_authentication/show.html.erb
devise_xfactor_authentication-2.2.21 app/views/devise/devise_xfactor_authentication/show.html.erb
devise_xfactor_authentication-2.2.20 app/views/devise/devise_xfactor_authentication/show.html.erb
devise_xfactor_authentication-2.2.19 app/views/devise/devise_xfactor_authentication/show.html.erb
devise_xfactor_authentication-2.2.18 app/views/devise/devise_xfactor_authentication/show.html.erb