Sha256: 40369f926c7a16098056bce46650e671ed0cc0643e6e192cb3887f9f13aadc5b
Contents?: true
Size: 1.37 KB
Versions: 2
Compression:
Stored size: 1.37 KB
Contents
<h2> <%= I18n.t('submit_token_title', {:scope => 'devise'}) %> </h2> <%= verify_authy_form do %> <legend><%= I18n.t('submit_token_title', {:scope => 'devise'}) %></legend> <%= label_tag 'authy-token' %> <%= text_field_tag :token, "", :autocomplete => :off, :id => 'authy-token' %> <label> <%= check_box_tag :remember_device %> <span><%= I18n.t('remember_device', {:scope => 'devise'}) %></span> </label> <!-- Help tooltip --> <!-- You need to configure a help message. --> <!-- See documentation: https://github.com/authy/authy-form-helpers#help-tooltip --> <!-- <%= link_to '?', '#', :id => 'authy-help' %> --> <%= authy_request_sms_link %> <%= submit_tag I18n.t('submit_token', {:scope => 'devise'}), :class => 'btn' %> <% end %> <% if @onetouch_uuid %> <script> (function(){ var onetouchInterval = setInterval(function(){ var onetouchRequest = new XMLHttpRequest(); onetouchRequest.addEventListener("load", function(){ if(this.status != 202) clearInterval(onetouchInterval); if(this.status == 200) window.location = JSON.parse(this.responseText).redirect; }); onetouchRequest.open("GET", "<%= polymorphic_path [resource_name, :authy_onetouch_status] %>?onetouch_uuid=<%= @onetouch_uuid %>"); onetouchRequest.send(); }, 3000); })(); </script> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise-authy-1.11.1 | app/views/devise/verify_authy.html.erb |
devise-authy-1.11.0 | app/views/devise/verify_authy.html.erb |