diff options
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r-- | engine/lib/users.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index cddc89b3a..04e95c964 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1249,7 +1249,9 @@ $user->name = $name;
$user->access_id = ACCESS_PUBLIC;
$user->salt = generate_random_cleartext_password(); // Note salt generated before password!
- $user->password = generate_user_password($user, $password);
+ $user->password = generate_user_password($user, $password); + $user->owner_guid = 0; // Users aren't owned by anyone, even if they are admin created. + $user->container_guid = 0; // Users aren't contained by anyone, even if they are admin created.
$user->save();
// If $friend_guid has been set, make mutual friends
|