2020-10-18 01:39:46 -07:00
|
|
|
.card
|
|
|
|
.card-body
|
|
|
|
%h2= t('views.settings.security.2fa.title')
|
2020-10-18 10:48:12 -07:00
|
|
|
- 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 }
|