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
-5
View File
@@ -109,11 +109,6 @@ export async function registration(
}
});
console.log('response <======');
console.log(response);
console.log('process.env.SESSION_SECRET <======');
console.log(process.env?.SESSION_SECRET);
if (response.ok) {
console.log('enter response ok <======');
let parsed = await response.json();
+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(),