#22170 [Opn->Csd]: PEAR::Auth 1.1.1 reports success even if table-access fails
| From: | mj@php.net | Date: | Wed, 12 Feb 2003 06:51:59 +0000 |
| Subject: | #22170 [Opn->Csd]: PEAR::Auth 1.1.1 reports success even if table-access fails | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-13157@lists.php.net to get a copy of this message | ||
ID: 22170
Updated by: mj@php.net
Reported By: zaphod@s4r.de
-Status: Open
+Status: Closed
Bug Type: PEAR related
PHP Version: 4.3.0
New Comment:
This bug has been fixed in CVS already. The changes will
be part of the next release.
Previous Comments:
------------------------------------------------------------------------
[2003-02-11 10:25:49] zaphod@s4r.de
When there is an error (eg. typo in tablename) in the connection
settings for Auth, getAuth returns true == success even if the check
fails. The reason is in the method Auth::login:
if (!empty($this->username)) {
$login_ok = $this->storage->fetchData($this->username,
$this->password);
}
$this->storage->fetchData returns an PEAR-Error-object, which will be
treated like true == success in the method.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22170&edit=1