aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index c371a7db2..a48170ce2 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -431,7 +431,6 @@
$username = sanitise_string($username);
$row = get_data_row("SELECT * from {$CONFIG->dbprefix}users_entity where username='$username'");
-
if ($row)
return new ElggUser($row);
@@ -490,6 +489,7 @@
$user->password = md5($password);
$user->email = $email;
$user->name = $name;
+ $register->access_id = 2;
$user->save();
return $user->getGUID();