Sha256: a99699f5b8eb5140ee39d5ff715fd6ad66f26a408dfc74041b44e2f74cfa9c7e
Contents?: true
Size: 821 Bytes
Versions: 2
Compression:
Stored size: 821 Bytes
Contents
<h2><%= I18n.t('title', :scope => 'devise.otp.tokens') %></h2> <p><%= I18n.t('explain', :scope => 'devise.otp.tokens') %></p> <%= form_for(resource, :as => resource_name, :url => [resource_name, :otp_token], :html => { :method => :put, "data-turbo" => false }) do |f| %> <%= render "devise/shared/error_messages", resource: resource %> <h3><%= I18n.t('enable_request', :scope => 'devise.otp.tokens') %></h3> <p> <%= f.label :otp_enabled, I18n.t('status', :scope => 'devise.otp.tokens') %><br /> <%= f.check_box :otp_enabled %> </p> <p><%= f.submit I18n.t('submit', :scope => 'devise.otp.tokens') %></p> <% end %> <%- if resource.otp_enabled? %> <%= render :partial => 'token_secret' if resource.otp_enabled? %> <%= render :partial => 'trusted_devices' if trusted_devices_enabled? %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise-otp-0.4.0 | app/views/devise/otp_tokens/show.html.erb |
devise-otp-0.3.0 | app/views/devise/tokens/show.html.erb |