make case insensitive

This commit is contained in:
Erik 2024-02-16 12:37:23 +02:00
parent 901277bd5b
commit 7add3ea473

View File

@ -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' };
} }