From 5eb1d98be6af5f425cdcd2ab602198200fe158d1 Mon Sep 17 00:00:00 2001 From: marcus Date: Sat, 7 Mar 2009 11:24:15 +0000 Subject: Closes #841: User request for password changes now functional. git-svn-id: https://code.elgg.org/elgg/trunk@3122 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/lib/users.php') 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"); -- cgit v1.2.3