make username lowercase

This commit is contained in:
miloschwartz
2025-06-19 15:41:49 -04:00
parent 58ba0d07b0
commit 1bf2e23f5d
8 changed files with 18 additions and 15 deletions

View File

@@ -22,8 +22,8 @@ const authWithWhitelistBodySchema = z
.object({
email: z
.string()
.email()
.transform((v) => v.toLowerCase()),
.toLowerCase()
.email(),
otp: z.string().optional()
})
.strict();