make case insensitive
This commit is contained in:
parent
901277bd5b
commit
7add3ea473
@ -164,7 +164,7 @@ class UserDatabase implements UserDatabaseInterface
|
|||||||
if (name)
|
if (name)
|
||||||
{
|
{
|
||||||
if (partialName)
|
if (partialName)
|
||||||
query.name = { $regex: name };
|
query.name = { $regex: name, $options: 'i' };
|
||||||
else
|
else
|
||||||
query.name = { $regex: `^${name}$`, $options: 'i' };
|
query.name = { $regex: `^${name}$`, $options: 'i' };
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user