Generate a random password for new Bugdar users from the auth database
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;