fix: security improvements (#2593)

This commit is contained in:
Catalin Pit
2026-04-30 07:43:20 +03:00
committed by GitHub
parent 2f4c3893a3
commit ae497092d7
17 changed files with 324 additions and 40 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import { z } from 'zod';
import { ZNameSchema } from '@documenso/lib/constants/auth';
import { zEmail } from '@documenso/lib/utils/zod';
export const ZCurrentPasswordSchema = z
@@ -36,7 +37,7 @@ export const ZPasswordSchema = z
});
export const ZSignUpSchema = z.object({
name: z.string().min(1),
name: ZNameSchema,
email: zEmail(),
password: ZPasswordSchema,
signature: z.string().nullish(),