Retrospring/app/views/settings/_security.haml

8 lines
315 B
Plaintext
Raw Normal View History

2020-10-18 01:39:46 -07:00
.card
.card-body
%h2= t('views.settings.security.2fa.title')
- if current_user.otp_module_disabled?
2020-10-21 04:55:55 -07:00
= render partial: 'settings/security/totp_setup', locals: { qr_svg: qr_svg }
2020-10-18 01:39:46 -07:00
- else
2020-11-01 10:10:59 -08:00
= render partial: 'settings/security/totp_enabled', locals: { recovery_code_count: recovery_code_count }