Unverified Commit 3b055f2e authored by jonasjoest's avatar jonasjoest Committed by GitHub

fix: use first email address when retrieving multiple from LDAP (#2051)

parent 9e08718e
......@@ -38,7 +38,7 @@ module.exports = {
const user = await WIKI.models.users.processProfile({
profile: {
id: userId,
email: _.get(profile, conf.mappingEmail, ''),
email: String(_.get(profile, conf.mappingEmail, '')).split(',')[0],
displayName: _.get(profile, conf.mappingDisplayName, '???'),
picture: _.get(profile, conf.mappingPicture, '')
},
......
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