PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Authentication » LiveUser » Bug #2568

LiveUser_Admin::setAdminAuthContainer() returns true on failure

Details

Submitted2004-10-19 13:20 UTC
Frommichael dot caplan at lechateau dot ca
Assignedarnaud
StatusClosed
PackageLiveUser
PHP VersionIrrelevant
OSirrelevant
Roadmaps(Not assigned)

Comments

[2004-10-19 13:20 UTC] michael dot caplan at lechateau dot ca

Description:
------------
if LiveUser_Admin::_authFactory() fails, LiveUser_Admin::setAdminAuthContainer() still returns true. A simple:

if (PEAR::isError($this->_authContainers[$authName]) {
return false;
}

shoudl do the trick.

[2004-10-19 13:27 UTC] michael dot caplan at lechateau dot ca

in addition, LiveUser_Admin::setAdminContainers() doesn't trickle down the errors. Something like this should be happening:

if (isset($authName)) {
if (!isset($this->perm) || !is_object($this->perm)) {
$perm_res = $this->setAdminPermContainer();
}
$auth_res = $this->setAdminAuthContainer($authName);
return (!$perm_res || !$auth_res) ? false : true;
}