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,
|
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 New Issue