mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Fixed LDAP authentication doesn't support mutliple emails in LDAP accounts.
Thanks to buzztiaan ! Fixes #4452
This commit is contained in:
parent
a91e274785
commit
3394f54fb4
1 changed files with 6 additions and 1 deletions
|
|
@ -81,7 +81,12 @@ export function getLdapEmail(ldapUser) {
|
|||
});
|
||||
}
|
||||
|
||||
return ldapUser.getLDAPValue(emailField);
|
||||
const ldapMail = ldapUser.getLDAPValue(emailField);
|
||||
if (typeof ldapMail === 'string') {
|
||||
return ldapMail;
|
||||
} else {
|
||||
return ldapMail[0].toString();
|
||||
}
|
||||
}
|
||||
|
||||
export function getLdapFullname(ldapUser) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue