two_factor.html.haml 700 B

1234567891011121314
  1. - content_for :page_title do
  2. = t('auth.login')
  3. = simple_form_for(resource, as: resource_name, url: session_path(resource_name), method: :post) do |f|
  4. %p.hint{ style: 'margin-bottom: 25px' }= t('simple_form.hints.sessions.otp')
  5. .fields-group
  6. = f.input :otp_attempt, type: :number, wrapper: :with_label, label: t('simple_form.labels.defaults.otp_attempt'), input_html: { 'aria-label' => t('simple_form.labels.defaults.otp_attempt'), :autocomplete => 'off' }, autofocus: true
  7. .actions
  8. = f.button :button, t('auth.login'), type: :submit
  9. - if Setting.site_contact_email.present?
  10. %p.hint.subtle-hint= t('users.otp_lost_help_html', email: mail_to(Setting.site_contact_email, nil))