mirror of https://github.com/status-im/codimd.git
LDAP auth use email if provided
This commit is contained in:
parent
72a0e90f7d
commit
3491f97f7e
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue