cvs: pear /Perm_LiveUser/Admin/Auth/Container DB.php MDB.php
| From: | Arnaud Limbourg | Date: | Mon, 06 Oct 2003 09:01:15 +0000 |
| Subject: | cvs: pear /Perm_LiveUser/Admin/Auth/Container DB.php MDB.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-13412@lists.php.net to get a copy of this message | ||
arnaud Mon Oct 6 05:01:15 2003 EDT
Modified files:
/pear/Perm_LiveUser/Admin/Auth/Container MDB.php DB.php
Log:
* use sequences instead of md5 when adding a new user to the Auth Container
Index: pear/Perm_LiveUser/Admin/Auth/Container/MDB.php
diff -u pear/Perm_LiveUser/Admin/Auth/Container/MDB.php:1.20
pear/Perm_LiveUser/Admin/Auth/Container/MDB.php:1.21
--- pear/Perm_LiveUser/Admin/Auth/Container/MDB.php:1.20 Thu Oct 2 16:02:00 2003
+++ pear/Perm_LiveUser/Admin/Auth/Container/MDB.php Mon Oct 6 05:01:14 2003
@@ -47,7 +47,7 @@
* This class is only experimental. API may change. Use it at your own risk.
*
* @author Bj?rn Kraus <krausbn@php.net>
- * @version $Id: MDB.php,v 1.20 2003/10/02 20:02:00 arnaud Exp $
+ * @version $Id: MDB.php,v 1.21 2003/10/06 09:01:14 arnaud Exp $
* @package LiveUser
*/
class LiveUser_Admin_Auth_Container_MDB extends LiveUser_Admin_Auth_Common
@@ -212,7 +212,7 @@
// Generate new user ID
if (is_null($authId)) {
- $authId = md5($handle . getmypid() . uniqid(rand(), 1));
+ $authId = $this->dbc->nextId($this->$authTable);
}
// Register new user in auth table
Index: pear/Perm_LiveUser/Admin/Auth/Container/DB.php
diff -u pear/Perm_LiveUser/Admin/Auth/Container/DB.php:1.18
pear/Perm_LiveUser/Admin/Auth/Container/DB.php:1.19
--- pear/Perm_LiveUser/Admin/Auth/Container/DB.php:1.18 Thu Oct 2 16:00:51 2003
+++ pear/Perm_LiveUser/Admin/Auth/Container/DB.php Mon Oct 6 05:01:15 2003
@@ -48,7 +48,7 @@
* This class is only experimental. API may change. Use it at your own risk.
*
* @author Bj?rn Kraus <krausbn@php.net>
- * @version $Id: DB.php,v 1.18 2003/10/02 20:00:51 arnaud Exp $
+ * @version $Id: DB.php,v 1.19 2003/10/06 09:01:15 arnaud Exp $
* @package LiveUser
* @category authentication
*/
@@ -215,7 +215,7 @@
// Generate new user ID
if (is_null($authId)) {
- $authId = md5($handle . getmypid() . uniqid(rand(), 1));
+ $authId = $this->dbc->nextId($this->$authTable);
}
if ($active == true) {