From 7c37db8ace6aa37def9e7e926b8e8be34d4cde82 Mon Sep 17 00:00:00 2001 From: "matthias.grimm" Date: Sun, 8 May 2005 20:31:40 +0200 Subject: mysql create user function This patch adds the missing function createuser in the mysql auth module. Some new SQL statements have to be defined so that it works: $conf['auth']['mysql']['getgroupid'] to get the ID of a given group $conf['auth']['mysql']['adduser'] to add a user to the database $conf['auth']['mysql']['addusergroup'] to let the user join a given group darcs-hash:20050508183140-45302-de96a42fd79801a5e9ab14cb476f56b2c9432d7c.gz --- inc/auth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'inc/auth.php') diff --git a/inc/auth.php b/inc/auth.php index ca6fb20de..26be26d45 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -389,7 +389,8 @@ function register(){ } //okay try to create the user - $pass = auth_createUser($_POST['login'],$_POST['fullname'],$_POST['email']); + $pass = auth_pwgen(); + $pass = auth_createUser($_POST['login'],$pass,$_POST['fullname'],$_POST['email']); if(empty($pass)){ msg($lang['reguexists'],-1); return false; -- cgit v1.2.3