Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
auth
Commits
5e0cdd91
Commit
5e0cdd91
authored
Apr 18, 2013
by
Bertrand Gauthier
Browse files
Correction suite à la Refactorisation de la classe de l'entité LDAP People.
parent
45b262fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/UnicaenAuth/Authentication/Storage/LdapDb.php
View file @
5e0cdd91
...
...
@@ -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
;
}
...
...
src/UnicaenAuth/Entity/Ldap/PeopleAdapter.php
View file @
5e0cdd91
...
...
@@ -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 brut
es
* @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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment