Browse Source

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

pull/4546/head
Beh 3 years ago
committed by GitHub
parent
commit
ed3925b1c5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      server/modules/authentication/rocketchat/authentication.js

2
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) {

Loading…
Cancel
Save