Skip to content
Snippets Groups Projects
Commit 5e0cdd91 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Correction suite à la Refactorisation de la classe de l'entité LDAP People.

parent 45b262fd
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,8 @@ class LdapDb implements Storage\StorageInterface, ServiceManagerAwareInterface
// moyen de savoir si l'utilisateur a été créé à partir de l'annuaire LDAP: mdp = 'ldap' dans la table
if (!$dbIdentity || $dbIdentity->getPassword() == 'ldap') {
$ldapIdentity = $this->getLdapStorage()->read();
$identity = new \UnicaenAuth\Entity\Ldap\PeopleAdapter($ldapIdentity, $userId);
$identity = new \UnicaenAuth\Entity\Ldap\PeopleAdapter($ldapIdentity->getData(), $userId);
// var_dump($identity);die;
}
return $identity;
}
......
......@@ -19,10 +19,10 @@ class PeopleAdapter extends \UnicaenApp\Entity\Ldap\People implements \ZfcUser\E
/**
* Constructeur.
*
* @param array|object $data Source de données
* @param array $data Valeurs des attributs brutes
* @param int $userId Id éventuel de l'utilisateur dans la base de données de l'appli
*/
public function __construct($data, $userId = null)
public function __construct(array $data = array(), $userId = null)
{
parent::__construct($data);
$this->setId($userId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment