Sha256: bf9910f4b98c2dd3ddbc899b28e2ef4943206d484a0e90cfde25f6d33e8ad09d

Contents?: true

Size: 1.09 KB

Versions: 6

Compression:

Stored size: 1.09 KB

Contents

<h3><%= I18n.t('title', {scope: 'devise.two_factor.token_secret'}) %></h3>
<p><%= I18n.t('explain', {scope: 'devise.two_factor.token_secret'}) %></p>

<%= otp_authenticator_token_image(resource) %>

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

<p><%= link_to I18n.t('reset_otp', {scope: 'devise.two_factor.token_secret'}), @resource, method: :delete %></p>
<p><%= I18n.t('reset_explain', {scope: 'devise.two_factor.token_secret'}) %>
   <strong><%= I18n.t('reset_explain_warn', {scope: 'devise.two_factor.token_secret'}) %></strong></p>

<%- if recovery_enabled? %>
  <h3><%= I18n.t('title', {scope: 'devise.two_factor.tokens.recovery'}) %></h3>
  <p><%= I18n.t('explain', {scope: 'devise.two_factor.tokens.recovery'}) %></p>
  <p><%= link_to I18n.t('codes_list', {scope: 'devise.two_factor.tokens.recovery'}), recovery_token_for(resource_name) %></p>
  <p><%= link_to I18n.t('download_codes', {scope: 'devise.two_factor.tokens.recovery'}), recovery_token_for(resource_name, format: :text) %></p>

<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
devise-2fa-0.4.1 app/views/devise/tokens/_token_secret.html.erb
devise-2fa-0.4.0 app/views/devise/tokens/_token_secret.html.erb
devise-2fa-0.2.1 app/views/devise/tokens/_token_secret.html.erb
devise-2fa-0.2.0 app/views/devise/tokens/_token_secret.html.erb
devise-2fa-0.1.1 app/views/devise/tokens/_token_secret.html.erb
devise-2fa-0.1.0 app/views/devise/tokens/_token_secret.html.erb