Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix auth.multi updateUserObject call in user-choice mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Aug 27, 2013
1 parent 7fab74a commit 7dd5683
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/src/plugins/auth.multi/class.multiAuthDriver.php
Expand Up @@ -234,9 +234,17 @@ function listUsers($baseGroup="/"){

function updateUserObject(&$userObject){
$s = $this->getAuthScheme($userObject->getId());
if(isSet($this->drivers[$s])){
$test = $this->extractRealId($userObject->getId());
if($test != $userObject->getId()) {
$restore = $userObject->getId();
$userObject->setId($test);
}
if(!empty($s) && isSet($this->drivers[$s])){
$this->drivers[$s]->updateUserObject($userObject);
}else if(!empty($this->currentDriver) && isSet($this->drivers[$this->currentDriver])){
$this->drivers[$this->currentDriver]->updateUserObject($userObject);
}
if(isSet($restore)) $userObject->setId($restore);
}

/**
Expand Down
3 changes: 3 additions & 0 deletions core/src/plugins/core.conf/class.AbstractAjxpUser.php
Expand Up @@ -106,6 +106,9 @@ function getId(){
return $this->id;
}

function setId($id){
$this->id = $id ;
}
/**
* @return bool
*/
Expand Down

0 comments on commit 7dd5683

Please sign in to comment.