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

@ -3071,7 +3071,7 @@ SELECT
FROM
users
WHERE
(LOWER(username) = LOWER($1) OR email = $2)
(LOWER(username) = LOWER($1) OR LOWER(email) = LOWER($2))
AND deleted = $3
LIMIT
1