summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/auth.php')
-rw-r--r--inc/auth.php3
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;