Skip to content

Commit

Permalink
fix: use first email address in Rocket.Chat auth response (#3122)
Browse files Browse the repository at this point in the history
  • Loading branch information
deg0nz authored Sep 30, 2021
1 parent 3814eef commit ed3925b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/modules/authentication/rocketchat/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ed3925b

Please sign in to comment.