mirror of https://github.com/status-im/codimd.git
Multiple emails from LDAP are already an Array
Signed-off-by: Felix Schäfer <felix@thegcat.net>
This commit is contained in:
parent
21be5a5517
commit
12dae4465f
|
@ -37,7 +37,7 @@ passport.use(new LDAPStrategy({
|
||||||
id: 'LDAP-' + uuid,
|
id: 'LDAP-' + uuid,
|
||||||
username: username,
|
username: username,
|
||||||
displayName: user.displayName,
|
displayName: user.displayName,
|
||||||
emails: user.mail ? [user.mail] : [],
|
emails: user.mail ? Array.isArray(user.mail) ? user.mail : [user.mail] : [],
|
||||||
avatarUrl: null,
|
avatarUrl: null,
|
||||||
profileUrl: null,
|
profileUrl: null,
|
||||||
provider: 'ldap'
|
provider: 'ldap'
|
||||||
|
|
Loading…
Reference in New Issue