fixes #11047 Switches Hall query to use lowercase name

This commit is contained in:
Randi Miller
2019-03-17 04:00:50 -04:00
parent c7309ae179
commit e083df64e4
3 changed files with 16 additions and 4 deletions

View File

@@ -175,7 +175,7 @@ api.getHero = {
if (validator.isUUID(heroId)) {
query = {_id: heroId};
} else {
query = {'auth.local.username': heroId};
query = {'auth.local.lowerCaseUsername': heroId.toLowerCase()};
}
const hero = await User