Przeglądaj źródła

Merge branch 'master' of https://github.com/Emile840/wekan into Emile840-master

Lauri Ojansivu 3 lat temu
rodzic
commit
3319602f3f
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      models/users.js

+ 2 - 2
models/users.js

@@ -436,9 +436,9 @@ Users.allow({
   fetch: [],
   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.
 // 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, {
 Users.initEasySearch(searchInFields, {
   use: 'mongo-db',
   use: 'mongo-db',
   returnFields: [...searchInFields, 'profile.avatarUrl'],
   returnFields: [...searchInFields, 'profile.avatarUrl'],