cvs: pear /LiveUser LiveUser.php /LiveUser/Auth PEARAuth.php
| From: | Arnaud Limbourg | Date: | Mon, 28 Nov 2005 22:58:22 +0000 |
| Subject: | cvs: pear /LiveUser LiveUser.php /LiveUser/Auth PEARAuth.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-36584@lists.php.net to get a copy of this message | ||
arnaud Mon Nov 28 17:58:22 2005 EDT
Modified files:
/pear/LiveUser LiveUser.php
/pear/LiveUser/Auth PEARAuth.php
Log:
more helpful error message when the class cannot be loaded
make the PEAR::Auth wrapper use the passed handle and password
http://cvs.php.net/diff.php/pear/LiveUser/LiveUser.php?r1=1.130&r2=1.131&ty=u
Index: pear/LiveUser/LiveUser.php
diff -u pear/LiveUser/LiveUser.php:1.130 pear/LiveUser/LiveUser.php:1.131
--- pear/LiveUser/LiveUser.php:1.130 Mon Nov 28 14:55:59 2005
+++ pear/LiveUser/LiveUser.php Mon Nov 28 17:58:18 2005
@@ -40,7 +40,7 @@
* @author Bjoern Kraus <krausbn@php.net>
* @copyright 2002-2005 Markus Wolff
* @license http://www.gnu.org/licenses/lgpl.txt
- * @version CVS: $Id: LiveUser.php,v 1.130 2005/11/28 19:55:59 lsmith Exp $
+ * @version CVS: $Id: LiveUser.php,v 1.131 2005/11/28 22:58:18 arnaud Exp $
* @link http://pear.php.net/LiveUser
*/
@@ -563,6 +563,10 @@
if ($auth->init($conf, $containerName) === false) {
$auth = false;
}
+ } else {
+ $this->_stack->push(
+ LIVEUSER_ERROR_CONFIG, 'exception',
+ array(), 'Cannot load class ' . $classname);
}
return $auth;
}
@@ -586,7 +590,12 @@
if ($perm->init($conf) === false) {
$perm = false;
}
+ } else {
+ $this->_stack->push(
+ LIVEUSER_ERROR_CONFIG, 'exception',
+ array(), 'Cannot load class ' . $classname);
}
+
return $perm;
}
http://cvs.php.net/diff.php/pear/LiveUser/Auth/PEARAuth.php?r1=1.23&r2=1.24&ty=u
Index: pear/LiveUser/Auth/PEARAuth.php
diff -u pear/LiveUser/Auth/PEARAuth.php:1.23 pear/LiveUser/Auth/PEARAuth.php:1.24
--- pear/LiveUser/Auth/PEARAuth.php:1.23 Mon Nov 28 14:54:58 2005
+++ pear/LiveUser/Auth/PEARAuth.php Mon Nov 28 17:58:21 2005
@@ -40,7 +40,7 @@
* @author Bjoern Kraus <krausbn@php.net>
* @copyright 2002-2005 Markus Wolff
* @license http://www.gnu.org/licenses/lgpl.txt
- * @version CVS: $Id: PEARAuth.php,v 1.23 2005/11/28 19:54:58 lsmith Exp $
+ * @version CVS: $Id: PEARAuth.php,v 1.24 2005/11/28 22:58:21 arnaud Exp $
* @link http://pear.php.net/LiveUser
*/
@@ -133,6 +133,8 @@
*/
function readUserData()
{
+ $this->pearAuth->username = $handle;
+ $this->pearAuth->password = $passwd;
$this->pearAuth->start();
// If a user was found, read data into class variables and set
@@ -156,4 +158,4 @@
}
}
-?>
\ No newline at end of file
+?>