mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
password length check in password-input.tsx file
This commit is contained in:
parent
1d6a59dd67
commit
27dcc5f593
@ -23,7 +23,7 @@ export const PasswordInput = <TFieldValues extends FieldValues>({ register, curr
|
||||
rules={{
|
||||
required: true,
|
||||
validate: (value: string) => {
|
||||
if (value.length < 8) {
|
||||
if (value.length < 12) {
|
||||
return t('app.shared.password_input.password_too_short') as string;
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user