mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +02:00
🔒️ Set max email length
This commit is contained in:
parent
0038b238ca
commit
d57ca55e1a
1 changed files with 2 additions and 2 deletions
|
@ -27,8 +27,8 @@ import { trpc } from "@/trpc/client";
|
||||||
import { useDayjs } from "@/utils/dayjs";
|
import { useDayjs } from "@/utils/dayjs";
|
||||||
|
|
||||||
const registerFormSchema = z.object({
|
const registerFormSchema = z.object({
|
||||||
name: z.string().nonempty().max(100),
|
name: z.string().min(1).max(100),
|
||||||
email: z.string().email(),
|
email: z.string().email().max(255),
|
||||||
});
|
});
|
||||||
|
|
||||||
type RegisterFormData = z.infer<typeof registerFormSchema>;
|
type RegisterFormData = z.infer<typeof registerFormSchema>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue