LDAP auth use email if provided
This commit is contained in:
parent
72a0e90f7d
commit
3491f97f7e
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ if (config.ldap) {
|
||||||
id: 'LDAP-' + user.uidNumber,
|
id: 'LDAP-' + user.uidNumber,
|
||||||
username: user.uid,
|
username: user.uid,
|
||||||
displayName: user.displayName,
|
displayName: user.displayName,
|
||||||
emails: [],
|
emails: user.mail ? [user.mail] : [],
|
||||||
avatarUrl: null,
|
avatarUrl: null,
|
||||||
profileUrl: null,
|
profileUrl: null,
|
||||||
provider: 'ldap',
|
provider: 'ldap',
|
||||||
|
|
Loading…
Reference in a new issue