From: Chimo Date: Fri, 4 Dec 2015 17:09:06 +0000 (+0000) Subject: Fix /scripts/setpassword.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=10bb4cb6599d1760ddd6448db23a1d47ea246a5f;p=quix0rs-gnu-social.git Fix /scripts/setpassword.php common_munge_password is expecting a Profile, we were passing a user_id. Thanks @aroque for the fix ( ref. #100 ) --- diff --git a/scripts/setpassword.php b/scripts/setpassword.php index 3e9f5c17ca..6908ef556a 100755 --- a/scripts/setpassword.php +++ b/scripts/setpassword.php @@ -50,7 +50,7 @@ if (!$user) { $original = clone($user); -$user->password = common_munge_password($password, $user->id); +$user->password = common_munge_password($password, $user->getProfile()); if (!$user->update($original)) { print "Error updating user '$nickname'.\n";