fix: all password check views use the new post route

This commit is contained in:
simon lehericey 2024-12-09 11:25:22 +01:00
parent 84f301cdb8
commit 0b67eb511b
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5
6 changed files with 38 additions and 6 deletions

View file

@ -16,7 +16,12 @@
.fr-fieldset__element .fr-fieldset__element
= render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field, = 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 #password_complexity
= render PasswordComplexityComponent.new = render PasswordComplexityComponent.new

View file

@ -18,7 +18,12 @@
.fr-fieldset__element .fr-fieldset__element
= render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field, = 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 #password_complexity
= render PasswordComplexityComponent.new = render PasswordComplexityComponent.new

View file

@ -21,7 +21,12 @@
.fr-fieldset__element .fr-fieldset__element
= render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field, = 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 #password_complexity
= render PasswordComplexityComponent.new = render PasswordComplexityComponent.new

View file

@ -14,7 +14,13 @@
.fr-fieldset__element .fr-fieldset__element
= render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field, = 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 #password_complexity
= render PasswordComplexityComponent.new = render PasswordComplexityComponent.new

View file

@ -18,7 +18,12 @@
.fr-fieldset__element .fr-fieldset__element
= render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field, = 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 #password_complexity
= render PasswordComplexityComponent.new = render PasswordComplexityComponent.new

View file

@ -20,7 +20,13 @@
.fr-fieldset__element .fr-fieldset__element
= render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field, = 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 #password_complexity
= render PasswordComplexityComponent.new = render PasswordComplexityComponent.new