mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
fixes #11047 Switches Hall query to use lowercase name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user