mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-26 05:32:43 +00:00
Merge pull request #760 from thegcat/fix/support_multiple_emails_in_ldap
Multiple emails from LDAP are already an Array
This commit is contained in:
commit
2698aa4b5f
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ passport.use(new LDAPStrategy({
|
|||
id: 'LDAP-' + uuid,
|
||||
username: username,
|
||||
displayName: user.displayName,
|
||||
emails: user.mail ? [user.mail] : [],
|
||||
emails: user.mail ? Array.isArray(user.mail) ? user.mail : [user.mail] : [],
|
||||
avatarUrl: null,
|
||||
profileUrl: null,
|
||||
provider: 'ldap'
|
||||
|
|
Loading…
Reference in a new issue