Merge pull request #9832 from demarches-simplifiees/do_not_prefill_totp

SuperAdmin: ne préremplit pas le code totp
This commit is contained in:
LeSim 2023-12-11 14:02:59 +00:00 committed by GitHub
commit 1d088c37c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@
- if SUPER_ADMIN_OTP_ENABLED - if SUPER_ADMIN_OTP_ENABLED
.fr-fieldset__element .fr-fieldset__element
= render Dsfr::InputComponent.new(form: f, attribute: :otp_attempt, input_type: :number_field, opts: { inputmode: :numeric }, required: false) = render Dsfr::InputComponent.new(form: f, attribute: :otp_attempt, input_type: :number_field, opts: { inputmode: :numeric, autocomplete: 'off' }, required: false)
.fr-fieldset__element .fr-fieldset__element
%p= link_to "Mot de passe oublié ou réinitialisation 2FA ?", new_super_admin_password_path, class: "fr-link" %p= link_to "Mot de passe oublié ou réinitialisation 2FA ?", new_super_admin_password_path, class: "fr-link"