Add help text and confirmation for disabling 2FA
This commit is contained in:
parent
4ce5dfc92a
commit
d550e6d4c7
|
@ -28,5 +28,5 @@
|
|||
= f.hidden_field :otp_secret_key, value: current_user.otp_secret_key
|
||||
= f.submit t('views.actions.save'), class: 'btn btn-primary'
|
||||
- else
|
||||
%p= t('views.settings.security.2fa.enabled_hint')
|
||||
= link_to t('views.actions.remove'), destroy_user_2fa_path, :class => 'btn btn-primary', :method => 'delete'
|
||||
%p Your account is set up to require the use of a one-time password in order to log in
|
||||
= link_to t('views.actions.remove'), destroy_user_2fa_path, :class => 'btn btn-primary', :method => 'delete', :data => { confirm: "Are you sure you want to disable two-factor authentication?" }
|
Loading…
Reference in New Issue