mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-29 19:03:41 +00:00
Align min/max values for confirm password with password
This commit is contained in:
parent
96d5e57351
commit
2debd43dd4
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user