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