From 0b67eb511b902073df43e33f3e92902bf13eaee8 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Mon, 9 Dec 2024 11:25:22 +0100 Subject: [PATCH] fix: all password check views use the new post route --- .../activate_account_form_component.html.haml | 7 ++++++- app/views/administrateurs/activate/new.html.haml | 7 ++++++- app/views/devise/passwords/edit.html.haml | 7 ++++++- app/views/experts/avis/sign_up.html.haml | 8 +++++++- app/views/gestionnaires/activate/new.html.haml | 7 ++++++- app/views/users/registrations/new.html.haml | 8 +++++++- 6 files changed, 38 insertions(+), 6 deletions(-) diff --git a/app/components/instructeurs/activate_account_form_component/activate_account_form_component.html.haml b/app/components/instructeurs/activate_account_form_component/activate_account_form_component.html.haml index c92729a6f..368a1012a 100644 --- a/app/components/instructeurs/activate_account_form_component/activate_account_form_component.html.haml +++ b/app/components/instructeurs/activate_account_form_component/activate_account_form_component.html.haml @@ -16,7 +16,12 @@ .fr-fieldset__element = render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field, - opts: { autofocus: 'true', autocomplete: 'new-password', data: { controller: 'turbo-input', turbo_input_url_value: show_password_complexity_path }, aria: {describedby: 'password_hint'}}) + opts: { autofocus: 'true', + autocomplete: 'new-password', + data: { controller: 'turbo-input', + turbo_input_url_value: show_password_complexity_path, + turbo_input_method_value: 'post' }, + aria: {describedby: 'password_hint'}}) #password_complexity = render PasswordComplexityComponent.new diff --git a/app/views/administrateurs/activate/new.html.haml b/app/views/administrateurs/activate/new.html.haml index 0dca181ed..3de3fdaee 100644 --- a/app/views/administrateurs/activate/new.html.haml +++ b/app/views/administrateurs/activate/new.html.haml @@ -18,7 +18,12 @@ .fr-fieldset__element = render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field, - opts: { autofocus: 'true', autocomplete: 'new-password', data: { controller: 'turbo-input', turbo_input_url_value: show_password_complexity_path }, aria: {describedby: 'password_hint'}}) + opts: { autofocus: 'true', + autocomplete: 'new-password', + data: { controller: 'turbo-input', + turbo_input_url_value: show_password_complexity_path, + turbo_input_method_value: 'post' }, + aria: {describedby: 'password_hint'}}) #password_complexity = render PasswordComplexityComponent.new diff --git a/app/views/devise/passwords/edit.html.haml b/app/views/devise/passwords/edit.html.haml index 4227eaea8..8f353643b 100644 --- a/app/views/devise/passwords/edit.html.haml +++ b/app/views/devise/passwords/edit.html.haml @@ -21,7 +21,12 @@ .fr-fieldset__element = render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field, - opts: { autofocus: 'true', autocomplete: 'new-password', data: { controller: 'turbo-input', turbo_input_url_value: show_password_complexity_path }, aria: {describedby: 'password_hint'}}) + opts: { autofocus: 'true', + autocomplete: 'new-password', + data: { controller: 'turbo-input', + turbo_input_url_value: show_password_complexity_path, + turbo_input_method_value: 'post' }, + aria: {describedby: 'password_hint'}}) #password_complexity = render PasswordComplexityComponent.new diff --git a/app/views/experts/avis/sign_up.html.haml b/app/views/experts/avis/sign_up.html.haml index 72d5da9ea..82efdd776 100644 --- a/app/views/experts/avis/sign_up.html.haml +++ b/app/views/experts/avis/sign_up.html.haml @@ -14,7 +14,13 @@ .fr-fieldset__element = render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field, - opts: { autofocus: 'true', autocomplete: 'new-password', data: { controller: 'turbo-input', turbo_input_url_value: show_password_complexity_path }, aria: {describedby: 'password_hint'}}) + opts: { autofocus: 'true', + autocomplete: 'new-password', + data: { controller: 'turbo-input', + turbo_input_url_value: show_password_complexity_path, + turbo_input_method_value: 'post', + }, + aria: {describedby: 'password_hint'}}) #password_complexity = render PasswordComplexityComponent.new diff --git a/app/views/gestionnaires/activate/new.html.haml b/app/views/gestionnaires/activate/new.html.haml index 5f91c40ea..11481c821 100644 --- a/app/views/gestionnaires/activate/new.html.haml +++ b/app/views/gestionnaires/activate/new.html.haml @@ -18,7 +18,12 @@ .fr-fieldset__element = render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field, - opts: { autofocus: 'true', autocomplete: 'new-password', data: { controller: 'turbo-input', turbo_input_url_value: show_password_complexity_path }, aria: {describedby: 'password_hint'}}) + opts: { autofocus: 'true', + autocomplete: 'new-password', + data: { controller: 'turbo-input', + turbo_input_url_value: show_password_complexity_path, + turbo_input_method_value: 'post' }, + aria: {describedby: 'password_hint'}}) #password_complexity = render PasswordComplexityComponent.new diff --git a/app/views/users/registrations/new.html.haml b/app/views/users/registrations/new.html.haml index 41e5c23ea..efe63138b 100644 --- a/app/views/users/registrations/new.html.haml +++ b/app/views/users/registrations/new.html.haml @@ -20,7 +20,13 @@ .fr-fieldset__element = render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field, - opts: { autofocus: 'true', autocomplete: 'new-password', data: { controller: 'turbo-input', turbo_input_url_value: show_password_complexity_path, email_input_target: 'next'}, aria: {describedby: 'password_hint'}}) + opts: { autofocus: 'true', + autocomplete: 'new-password', + data: { controller: 'turbo-input', + turbo_input_url_value: show_password_complexity_path, + turbo_input_method_value: 'post', + email_input_target: 'next' }, + aria: {describedby: 'password_hint'}}) #password_complexity = render PasswordComplexityComponent.new