Sha256: 3ef7ae467dfb02d2fff99817f759504a09ae8f761dac619ef5badfe678aacefd

Contents?: true

Size: 866 Bytes

Versions: 8

Compression:

Stored size: 866 Bytes

Contents

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

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

  <%= devise_error_messages! %>

    <div><%= f.label :email %><br />
    <%= f.text_field :email, :disabled => :true%></div>

    <div><%= f.label :password %><br />
	<%= f.password_field :refresh_password, :autocomplete => :off, :autofocus => true %></div>

  <%- if resource.otp_enabled? %>
    <div><%= f.label :token, I18n.t(:token, {:scope => 'devise.otp.credentials_refresh'}) %></p><br />
    <%= f.password_field :token, :autocomplete => :off%></div>
  <% end %>

	<div><%= f.submit I18n.t(:go_on, {:scope => 'devise.otp.credentials_refresh'}) %></div>
<% end %>

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
devise-otp2-0.2.6 app/views/devise_otp/credentials/refresh.html.erb
devise-otp2-0.2.5 app/views/devise_otp/credentials/refresh.html.erb
devise-otp2-0.2.4 app/views/devise_otp/credentials/refresh.html.erb
devise-otp-rails5-0.2.4 app/views/devise_otp/credentials/refresh.html.erb
devise-otp-0.2.3 app/views/devise_otp/credentials/refresh.html.erb
devise-otp-0.2.2 app/views/devise_otp/credentials/refresh.html.erb
devise-otp-0.2.0 app/views/devise_otp/credentials/refresh.html.erb
devise-otp-0.1.1 app/views/devise_otp/credentials/refresh.html.erb