瀏覽代碼

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

Emile NDAGIJIMANA 3 年之前
父節點
當前提交
1852e66abd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/users.js

+ 1 - 1
models/users.js

@@ -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'],