Deprecated: Assigning the return value of new by reference is deprecated in /home/bluestat/public_html/source/index.php on line 477
Bugdar - Commitdiff - ViewGit - Blue Static

Generate a random password for new Bugdar users from the auth database

Robert Sesek [2009-02-14 18:45]
Generate a random password for new Bugdar users from the auth database

* includes/auth/auth.php:
(Authentication::_createBugdarUser): Generate a random password when inserting a new user
diff --git a/includes/auth/auth.php b/includes/auth/auth.php
index a253228..dfbac46 100644
--- a/includes/auth/auth.php
+++ b/includes/auth/auth.php
@@ -286,6 +286,7 @@ class Authentication
 				$user->set($bugdar, $this->authUser["$authdb"]);
 			}
 			$user->set('usergroupid', 2);
+			$user->set('password', $this->registry->funct->rand());
 			$user->insert();

 			return $user->values;