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, 1 insertions, 2 deletions
diff --git a/inc/auth.php b/inc/auth.php
index d8fae97b7..d25003736 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -454,8 +454,7 @@ function register(){
}
//okay try to create the user
- $pass = $auth->createUser($_POST['login'],$pass,$_POST['fullname'],$_POST['email']);
- if(empty($pass)){
+ if(!$auth->createUser($_POST['login'],$pass,$_POST['fullname'],$_POST['email'])){
msg($lang['reguexists'],-1);
return false;
}