diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-07 11:24:15 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-07 11:24:15 +0000 |
commit | 5eb1d98be6af5f425cdcd2ab602198200fe158d1 (patch) | |
tree | adf0682cb56d68d613553ed4edcaeefd6be9dc2f | |
parent | 8782b8041b126a71f6a3d50265ac277ceb4583a2 (diff) | |
download | elgg-5eb1d98be6af5f425cdcd2ab602198200fe158d1.tar.gz elgg-5eb1d98be6af5f425cdcd2ab602198200fe158d1.tar.bz2 |
Closes #841: User request for password changes now functional.
git-svn-id: https://code.elgg.org/elgg/trunk@3122 36083f99-b078-4883-b0ff-0f9b5a30f544
-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");
|