mirror of
https://github.com/kremalicious/umami.git
synced 2025-01-11 13:44:01 +01:00
fix minimum password length message
This commit is contained in:
parent
16ece9ad64
commit
0889542f3b
@ -37,7 +37,7 @@ export default function PasswordEditForm({ onSave, onClose }) {
|
||||
name="newPassword"
|
||||
rules={{
|
||||
required: 'Required',
|
||||
minLength: { value: 8, message: formatMessage(messages.minPasswordLength) },
|
||||
minLength: { value: 8, message: formatMessage(messages.minPasswordLength, { n: 8 }) },
|
||||
}}
|
||||
>
|
||||
<PasswordField autoComplete="new-password" />
|
||||
@ -48,7 +48,7 @@ export default function PasswordEditForm({ onSave, onClose }) {
|
||||
name="confirmPassword"
|
||||
rules={{
|
||||
required: formatMessage(labels.required),
|
||||
minLength: { value: 8, message: formatMessage(messages.minPasswordLength) },
|
||||
minLength: { value: 8, message: formatMessage(messages.minPasswordLength, { n: 8 }) },
|
||||
validate: samePassword,
|
||||
}}
|
||||
>
|
||||
|
@ -48,7 +48,7 @@ export default function UserEditForm({ userId, data, onSave }) {
|
||||
<FormInput
|
||||
name="newPassword"
|
||||
rules={{
|
||||
minLength: { value: 8, message: formatMessage(messages.minPasswordLength) },
|
||||
minLength: { value: 8, message: formatMessage(messages.minPasswordLength, { n: 8 }) },
|
||||
}}
|
||||
>
|
||||
<PasswordField autoComplete="new-password" />
|
||||
|
Loading…
Reference in New Issue
Block a user