From 76ebe5f80257fa99ad7c57f86d6086d84d7a045a Mon Sep 17 00:00:00 2001 From: April Hall Date: Sun, 9 Feb 2025 21:28:49 -0500 Subject: [PATCH] fix: Don't verify password length on login --- src/lib/types/schema.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/lib/types/schema.ts b/src/lib/types/schema.ts index de5d456..e3a97d3 100644 --- a/src/lib/types/schema.ts +++ b/src/lib/types/schema.ts @@ -28,13 +28,7 @@ export const signupSchema = z export const loginSchema = z.object({ email: z.string().nonempty('An email is required').email('Please enter a valid email.'), - password: z - .string() - .min(8, 'Password must be at least 8 characters.') - .regex(/(?=.*[A-Z])/gm, 'Password must contain at uppercase letter.') - .regex(/(?=.*[a-z])/gm, 'Password must contain at lowercase letter.') - .regex(/(?=.*\d)/gm, 'Password must contain at least one number.') - .regex(/(?=.*\W)/gm, 'Password must contain at least one special character'), + password: z.string().nonempty('Password must not be empty.'), }); export type NewChannelSchema = typeof newChannelSchema;