diff options
author | matthias.grimm <matthias.grimm@users.sourceforge.net> | 2005-05-08 20:31:40 +0200 |
---|---|---|
committer | matthias.grimm <matthias.grimm@users.sourceforge.net> | 2005-05-08 20:31:40 +0200 |
commit | 7c37db8ace6aa37def9e7e926b8e8be34d4cde82 (patch) | |
tree | 4ca5dfc1ce04b5bc60cddb35865e577973343755 /inc/auth.php | |
parent | 919eeb46b9cf5cee0b72c69800ec2cbde1c46056 (diff) | |
download | rpg-7c37db8ace6aa37def9e7e926b8e8be34d4cde82.tar.gz rpg-7c37db8ace6aa37def9e7e926b8e8be34d4cde82.tar.bz2 |
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
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 3 |
1 files changed, 2 insertions, 1 deletions
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; |