2
0
Эх сурвалжийг харах

Merge branch 'Emile840-master'

Lauri Ojansivu 3 жил өмнө
parent
commit
9781afa17e
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      models/users.js

+ 2 - 2
models/users.js

@@ -436,9 +436,9 @@ Users.allow({
   fetch: [],
 });
 
-// Search a user in the complete server database by its name or username. This
+// Search a user in the complete server database by its name, username or emails adress. 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'],