Browse Source
fix: use first email address when retrieving multiple from LDAP (#2051)
Signed-off-by: Jonas Jöst <jonas@gpplanet.de>
pull/2070/head
jonasjoest
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
server/modules/authentication/ldap/authentication.js
|
|
@ -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, '') |
|
|
|
}, |
|
|
|