闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
700 B

  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))