mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
coderd: treat email case insensitively (#4215)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user