make all emails lowercase closes #89

This commit is contained in:
Milo Schwartz
2025-01-21 18:36:50 -05:00
parent d1278c252b
commit 5f92b0bbc1
10 changed files with 73 additions and 15 deletions

View File

@@ -20,7 +20,10 @@ import { verifySession } from "@server/auth/sessions/verifySession";
export const loginBodySchema = z
.object({
email: z.string().email(),
email: z
.string()
.email()
.transform((v) => v.toLowerCase()),
password: z.string(),
code: z.string().optional()
})