- normalize username and email fields to lowercase, resolves #1740

- add autoComplete attributes to auth flow for easier sign in/sign up
This commit is contained in:
Amruth Pillai
2025-01-12 15:13:11 +01:00
parent 92856b6f06
commit 89a44cc33a
12 changed files with 36 additions and 19 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import { usernameSchema } from "../user";
export const loginSchema = z
.object({
identifier: z.string(),
identifier: z.string().transform((value) => value.toLowerCase()),
password: z.password().min(6),
})
.refine(