Authentication with lowercased username

This commit is contained in:
Magnus Åhall 2024-04-22 09:19:21 +02:00
parent 548cddb773
commit d650542b72
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ func (db *T) Authenticate(username, password string) (authenticated bool, userID
SELECT id
FROM _webservice.user
WHERE
username = $1 AND
LOWER(username) = LOWER($1) AND
password = _webservice.password_hash(SUBSTRING(password FROM 1 FOR 32), $2::bytea)
`,
username,