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