Commit 32e06997 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Correction bug usurpation d'identité

parent 61d92528
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ class Ldap extends AbstractAdapter implements ServiceManagerAwareInterface, Even
        }

        // recherche de l'individu dans l'annuaire LDAP
        $ldapPeople = $this->getLdapPeopleMapper()->findOneByUsername($username);
        $ldapPeople = $this->getLdapPeopleMapper()->findOneByUsername($this->usernameUsurpe ?: $username);
        if (!$ldapPeople) {
            $e
                ->setCode(AuthenticationResult::FAILURE)