LDAP auth use email if provided

This commit is contained in:
alecdwm 2016-12-14 13:24:25 +01:00
parent 72a0e90f7d
commit 3491f97f7e
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ if (config.ldap) {
id: 'LDAP-' + user.uidNumber,
username: user.uid,
displayName: user.displayName,
emails: [],
emails: user.mail ? [user.mail] : [],
avatarUrl: null,
profileUrl: null,
provider: 'ldap',