We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0633a0d commit 7351157Copy full SHA for 7351157
packages/backend/src/api/v1/auth/index.ts
@@ -40,7 +40,7 @@ auth.post("/signup", async (ctx: Context) => {
40
}
41
42
const [existingUser] = await sql`
43
- select * from account where email = ${email}
+ select * from account where lower(email) = lower(${email})
44
`
45
if (existingUser) {
46
ctx.throw(403, "User already exists")
0 commit comments