Sha256: eb472d452ee074d7765afd0f6cf822001d3b1cc9218ffc34243cd5365410f2f3

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 KB

Contents

<h3><%= I18n.t('title', :scope => 'devise.otp.token_secret') %></h3>

<%= otp_authenticator_token_image(resource) %>

<p>
  <strong><%= I18n.t('manual_provisioning', :scope => 'devise.otp.token_secret') %>:</strong>
  <code><%= resource.otp_auth_secret %></code>
</p>

<p><%= button_to I18n.t('reset_link', :scope => 'devise.otp.otp_tokens'), reset_otp_token_path_for(resource), :method => :post , :data => { "turbo-method": "POST" } %></p>

<p>
  <%= I18n.t('reset_explain', :scope => 'devise.otp.otp_tokens') %>
  <strong><%= I18n.t('reset_explain_warn', :scope => 'devise.otp.otp_tokens') %></strong>
</p>

<%- if recovery_enabled? %>
  <h3><%= I18n.t('title', :scope => 'devise.otp.otp_tokens.recovery') %></h3>
  <p><%= I18n.t('explain', :scope => 'devise.otp.otp_tokens.recovery') %></p>
  <p><%= link_to I18n.t('codes_list', :scope => 'devise.otp.otp_tokens.recovery'), recovery_otp_token_for(resource_name) %></p>
  <p><%= link_to I18n.t('download_codes', :scope => 'devise.otp.otp_tokens.recovery'), recovery_otp_token_for(resource_name, format: :text) %></p>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise-otp-1.0.0 app/views/devise/otp_tokens/_token_secret.html.erb
devise-otp-0.8.0 app/views/devise/otp_tokens/_token_secret.html.erb
devise-otp-0.7.1 app/views/devise/otp_tokens/_token_secret.html.erb
devise-otp-0.7.0 app/views/devise/otp_tokens/_token_secret.html.erb