fix: use first email address in Rocket.Chat auth response (#3122)

This commit is contained in:
Beh authored and GitHub committed 2021-09-29 20:42:48 -04:00
1 parent 3814eef922
commit ed3925b1c5
1 file changed
+1 -1
@@ -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) {