Merge pull request #11069 from randi2kewl/11047-hall-search-case-insensitive

Fixes #11047 Hall search case insensitive
This commit is contained in:
Matteo Pagliazzi
2019-03-23 18:22:53 +01:00
committed by GitHub
3 changed files with 17 additions and 5 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