The code powering m.abunchtell.com https://m.abunchtell.com
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
674 B

  1. - content_for :page_title do
  2. = t('settings.two_factor_auth')
  3. .simple_form
  4. %p.hint= t('two_factor_auth.description_html')
  5. - if current_user.otp_required_for_login
  6. = link_to t('two_factor_auth.disable'), disable_settings_two_factor_auth_path, data: { method: 'POST' }, class: 'block-button'
  7. - else
  8. = link_to t('two_factor_auth.setup'), new_settings_two_factor_auth_path, class: 'block-button'
  9. - if current_user.otp_required_for_login
  10. .simple_form
  11. %p.hint= t('two_factor_auth.lost_recovery_codes')
  12. = link_to t('two_factor_auth.generate_recovery_codes'), recovery_codes_settings_two_factor_auth_path, data: { method: 'POST' }, class: 'block-button'