Unverified Commit ed3925b1 authored by Beh's avatar Beh Committed by GitHub

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

parent 3814eef9
...@@ -23,7 +23,7 @@ module.exports = { ...@@ -23,7 +23,7 @@ module.exports = {
cb(null, { cb(null, {
id: usr._id, id: usr._id,
displayName: _.isEmpty(usr.name) ? usr.username : usr.name, displayName: _.isEmpty(usr.name) ? usr.username : usr.name,
email: usr.email, email: usr.emails[0].address,
picture: usr.avatarUrl picture: usr.avatarUrl
}) })
} catch (err) { } catch (err) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment