From 0b542c3b98ea5ae4c39a7727f9dff5fd374da3e5 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Mon, 11 Dec 2023 09:52:58 +0100 Subject: [PATCH] fix(otp): do not autocomplete ever changing code --- app/views/super_admins/sessions/new.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/super_admins/sessions/new.html.haml b/app/views/super_admins/sessions/new.html.haml index 69661d8d8..7a491ebcc 100644 --- a/app/views/super_admins/sessions/new.html.haml +++ b/app/views/super_admins/sessions/new.html.haml @@ -14,7 +14,7 @@ - if SUPER_ADMIN_OTP_ENABLED .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 %p= link_to "Mot de passe oublié ou réinitialisation 2FA ?", new_super_admin_password_path, class: "fr-link"