Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🔒️ Set max email length

Luke Vellad57ca55e1a4f
diff --git a/apps/web/src/app/[locale]/(auth)/register/register-page.tsx b/apps/web/src/app/[locale]/(auth)/register/register-page.tsx
index 75a523f32..c9fbb56b9 100644
--- a/apps/web/src/app/[locale]/(auth)/register/register-page.tsx
+++ b/apps/web/src/app/[locale]/(auth)/register/register-page.tsx
@@ -27,8 +27,8 @@ import { trpc } from "@/trpc/client";
import { useDayjs } from "@/utils/dayjs";
const registerFormSchema = z.object({
- name: z.string().nonempty().max(100),
- email: z.string().email(),
+ name: z.string().min(1).max(100),
+ email: z.string().email().max(255),
});
type RegisterFormData = z.infer<typeof registerFormSchema>;