Add help text and confirmation for disabling 2FA

This commit is contained in:
Dominik Kwiatek 2020-10-18 20:49:11 +02:00
parent 4ce5dfc92a
commit d550e6d4c7
1 changed files with 2 additions and 2 deletions

View File

@ -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?" }