fix(auth): more auth things

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-12-21 11:18:06 +01:00
parent eb2abd6027
commit b6bdcddcbe
3 changed files with 8 additions and 10 deletions

View File

@@ -301,13 +301,7 @@ export const zProject = z.object({
});
export type IProjectEdit = z.infer<typeof zProject>;
export const zPassword = z
.string()
.min(8)
.regex(
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,
'Password must contain at least 8 characters, one uppercase letter, one lowercase letter, one number and one special character',
);
export const zPassword = z.string().min(8);
export const zSignInEmail = z.object({
email: z.string().email().min(1),