coderd: treat email case insensitively (#4215)

This commit is contained in:
Ammar Bandukwala
2022-09-26 22:51:58 -05:00
committed by GitHub
parent 20bcb04e8a
commit 47a53ce6c5
8 changed files with 15 additions and 3 deletions

View File

@ -17,7 +17,7 @@ SELECT
FROM
users
WHERE
(LOWER(username) = LOWER(@username) OR email = @email)
(LOWER(username) = LOWER(@username) OR LOWER(email) = LOWER(@email))
AND deleted = @deleted
LIMIT
1;