This commit is contained in:
Matt Jankowski 2025-11-26 17:05:15 +00:00 committed by GitHub
commit 6793412c74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
wrapper: :with_label wrapper: :with_label
.fields-group .fields-group
= f.input :password_confirmation, = f.input :password_confirmation,
input_html: { 'aria-label': t('simple_form.labels.defaults.confirm_new_password'), autocomplete: 'new-password' }, input_html: { 'aria-label': t('simple_form.labels.defaults.confirm_new_password'), autocomplete: 'new-password', minlength: User.password_length.first, maxlength: User.password_length.last },
label: t('simple_form.labels.defaults.confirm_new_password'), label: t('simple_form.labels.defaults.confirm_new_password'),
required: true, required: true,
wrapper: :with_label wrapper: :with_label

View File

@ -39,7 +39,7 @@
.fields-row__column.fields-group.fields-row__column-6 .fields-row__column.fields-group.fields-row__column-6
= f.input :password_confirmation, = f.input :password_confirmation,
disabled: current_account.suspended?, disabled: current_account.suspended?,
input_html: { 'aria-label': t('simple_form.labels.defaults.confirm_new_password'), autocomplete: 'new-password' }, input_html: { 'aria-label': t('simple_form.labels.defaults.confirm_new_password'), autocomplete: 'new-password', minlength: User.password_length.first, maxlength: User.password_length.last },
label: t('simple_form.labels.defaults.confirm_new_password'), label: t('simple_form.labels.defaults.confirm_new_password'),
wrapper: :with_label wrapper: :with_label

View File

@ -36,7 +36,7 @@
wrapper: :with_label wrapper: :with_label
= f.input :password_confirmation, = f.input :password_confirmation,
hint: false, hint: false,
input_html: { 'aria-label': t('simple_form.labels.defaults.confirm_password'), autocomplete: 'new-password', maxlength: User.password_length.last }, input_html: { 'aria-label': t('simple_form.labels.defaults.confirm_password'), autocomplete: 'new-password', minlength: User.password_length.first, maxlength: User.password_length.last },
placeholder: t('simple_form.labels.defaults.confirm_password'), placeholder: t('simple_form.labels.defaults.confirm_password'),
required: true required: true
= f.input :confirm_password, = f.input :confirm_password,