diff --git a/server/modules/authentication/rocketchat/authentication.js b/server/modules/authentication/rocketchat/authentication.js index 944d667c..edffef00 100644 --- a/server/modules/authentication/rocketchat/authentication.js +++ b/server/modules/authentication/rocketchat/authentication.js @@ -23,7 +23,7 @@ module.exports = { cb(null, { id: usr._id, displayName: _.isEmpty(usr.name) ? usr.username : usr.name, - email: usr.email, + email: usr.emails[0].address, picture: usr.avatarUrl }) } catch (err) {