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

@@ -19,7 +19,10 @@ import { passwordSchema } from "@server/auth/passwordSchema";
export const resetPasswordBody = z
.object({
email: z.string().email(),
email: z
.string()
.email()
.transform((v) => v.toLowerCase()),
token: z.string(), // reset secret code
newPassword: passwordSchema,
code: z.string().optional() // 2fa code