PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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;
}