Sha256: 131e400fc10c01fe53586be4e508eb9c47c2d328be229007e8e21e115025e070

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

<h2><%= I18n.t('title', {:scope => 'devise.otp.submit_token'}) %></h2>
<p><%= I18n.t('explain', {:scope => 'devise.otp.submit_token'}) %></p>

<%= form_for(resource, :as => resource_name, :url => [resource_name, :otp_credential], :html => { :method => :put }) do |f| %>

	<%= f.hidden_field :challenge, {:value => @challenge} %>
	<%= f.hidden_field :recovery, {:value => @recovery} %>

  <%- if @recovery %>
    <p><%= f.label :token, I18n.t('recovery_prompt', {:scope => 'devise.otp.submit_token'}) %><br />
        <%= f.text_field :otp_recovery_counter, :autocomplete => :off, :disabled => true, :size => 4 %>
        <% else %>
            <p><%= f.label :token, I18n.t('prompt', {:scope => 'devise.otp.submit_token'}) %><br />
        <% end %>

        <%= f.text_field :token, :autocomplete => :off, :autofocus => true, :size => 6, :value => '' %>
    </p>

	<p><%= f.submit I18n.t('submit', {:scope => 'devise.otp.submit_token'}) %></p>
    <%- if !@recovery && resource_class.recovery_tokens %>
      <p><%= link_to I18n.t('recovery_link', {:scope => 'devise.otp.submit_token'}), otp_credential_path_for(resource_name, :challenge => @challenge, :recovery => true) %></p>
    <% end %>
 <% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
devise-otp-0.2.0 app/views/devise_otp/credentials/show.html.erb
devise-otp-0.1.1 app/views/devise_otp/credentials/show.html.erb