diff options
-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 85be124b2..92268858c 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -973,7 +973,9 @@ if ($user)
{
- $salt = generate_random_cleartext_password(); // Reset the salt
+ $salt = generate_random_cleartext_password(); // Reset the salt + $user->salt = $salt; +
$hash = generate_user_password($user, $password);
return update_data("UPDATE {$CONFIG->dbprefix}users_entity set password='$hash', salt='$salt' where guid=$user_guid");
|