fix: Fixes error for unknown JSON when creating an account (#10248)

Co-authored-by: Shivam Kalra <[email protected]>
This commit is contained in:
sean-brydonandShivam Kalra authored and GitHub committed 2023-07-19 15:18:31 +00:00
1 parent ebe60c36bd
commit d51e1ab47d
2 files changed
+17 -8

No files matched your search

+3 -1
View File
@@ -12,7 +12,9 @@ import { IdentityProvider } from "@calcom/prisma/enums";
import { teamMetadataSchema } from "@calcom/prisma/zod-utils";
const signupSchema = z.object({
username: z.string(),
username: z.string().refine((value) => !value.includes("+"), {
message: "String should not contain a plus symbol (+).",
}),
email: z.string().email(),
password: z.string().min(7),
language: z.string().optional(),