Merge pull request #4142 from nielskaspers/fix/issue-3981-case-insensitive-login

fix: make username login case-insensitive
This commit is contained in:
Mike Cao authored and GitHub committed 2026-05-14 23:49:04 -04:00
commit 1dda7bddcd
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ export async function getUser(userId: string, options: GetUserOptions = {}) {
}
export async function getUserByUsername(username: string, options: GetUserOptions = {}) {
return findUser({ where: { username } }, options);
return findUser({ where: { username: username.toLowerCase() } }, options);
}
export async function getUsers(criteria: UserFindManyArgs, filters: QueryFilters = {}) {