The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

37 lines
1.2 KiB

  1. - content_for :page_title do
  2. = t('settings.two_factor_authentication')
  3. - if current_user.otp_required_for_login
  4. %p.hint
  5. %span.positive-hint
  6. = fa_icon 'check'
  7. = ' '
  8. = t 'two_factor_authentication.enabled'
  9. %hr.spacer/
  10. = simple_form_for @confirmation, url: settings_two_factor_authentication_path, method: :delete do |f|
  11. .fields-group
  12. = f.input :otp_attempt, wrapper: :with_block_label, hint: t('two_factor_authentication.code_hint'), label: t('simple_form.labels.defaults.otp_attempt'), input_html: { :autocomplete => 'off' }, required: true
  13. .actions
  14. = f.button :button, t('two_factor_authentication.disable'), type: :submit, class: 'negative'
  15. %hr.spacer/
  16. %h3= t('two_factor_authentication.recovery_codes')
  17. %p.muted-hint= t('two_factor_authentication.lost_recovery_codes')
  18. %hr.spacer/
  19. .simple_form
  20. = link_to t('two_factor_authentication.generate_recovery_codes'), settings_two_factor_authentication_recovery_codes_path, data: { method: :post }, class: 'block-button'
  21. - else
  22. .simple_form
  23. %p.hint= t('two_factor_authentication.description_html')
  24. %hr.spacer/
  25. = link_to t('two_factor_authentication.setup'), settings_two_factor_authentication_path, data: { method: :post }, class: 'block-button'