Search by name, userName or email address when adding a new user to a board

This commit is contained in:
Emile NDAGIJIMANA 2021-09-22 16:55:23 +02:00
parent ac0d7bda1c
commit 1852e66abd

View file

@ -431,7 +431,7 @@ Users.allow({
// Search a user in the complete server database by its name or username. This
// is used for instance to add a new user to a board.
const searchInFields = ['username', 'profile.fullname'];
const searchInFields = ['username', 'profile.fullname', 'emails.address'];
Users.initEasySearch(searchInFields, {
use: 'mongo-db',
returnFields: [...searchInFields, 'profile.avatarUrl'],