1
0
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:
Nicolas Florentin 2022-08-22 16:00:55 +02:00
parent 1d6a59dd67
commit 27dcc5f593

View File

@ -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;