闭社主体 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.

12 lines
551 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. = f.input :otp_attempt, type: :number, placeholder: t('simple_form.labels.defaults.otp_attempt'),
  5. input_html: { 'aria-label' => t('simple_form.labels.defaults.otp_attempt'), :autocomplete => 'off' }, required: true, autofocus: true,
  6. hint: t('simple_form.hints.sessions.otp')
  7. .actions
  8. = f.button :button, t('auth.login'), type: :submit
  9. .form-footer= render 'auth/shared/links'