fix LDAP hydration with multi-value email field (#862)
This commit is contained in:
committed by
Kevin Papst
parent
bdd05a275d
commit
bb8572a364
@@ -63,6 +63,10 @@ class LdapUserHydrator
|
||||
|
||||
$this->hydrateUserWithAttributesMap($user, $ldapEntry, $attributeMap);
|
||||
|
||||
if (is_array($user->getEmail())) {
|
||||
$user->setEmail($user->getEmail()[0]);
|
||||
}
|
||||
|
||||
if (null === $user->getEmail()) {
|
||||
$user->setEmail($user->getUsername());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user