change validation

This commit is contained in:
smanylov
2025-12-04 16:29:35 +07:00
parent f01847e75d
commit e9e70002f7
2 changed files with 1 additions and 6 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ export const SignupFormSchema = z
email: z.email({ error: 'Please enter a valid email.' }).trim(),
password: z
.string()
.min(6, { error: 'Be at least 6 characters long' })
.min(8, { error: 'Be at least 8 characters long' })
.regex(/[a-zA-Z]/, { error: 'Contain at least one letter.' })
.regex(/[0-9]/, { error: 'Contain at least one number.' })
.trim(),