From 233b74ad22395f02a245a4e3a3fc21c9101892f1 Mon Sep 17 00:00:00 2001 From: Trannie Carter Date: Fri, 3 May 2013 20:44:24 -0400 Subject: [PATCH] Remove obsolete $link parameter for password reset --- classes/pref/users.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/pref/users.php b/classes/pref/users.php index 4b7d2d69..3e8b2299 100644 --- a/classes/pref/users.php +++ b/classes/pref/users.php @@ -252,9 +252,9 @@ class Pref_Users extends Handler_Protected { } } - static function resetUserPassword($link, $uid, $show_password) { + static function resetUserPassword($uid, $show_password) { - $result = db_query($link, "SELECT login,email + $result = db_query("SELECT login,email FROM ttrss_users WHERE id = '$uid'"); $login = db_fetch_result($result, 0, "login"); @@ -266,7 +266,7 @@ class Pref_Users extends Handler_Protected { $pwd_hash = encrypt_password($tmp_user_pwd, $new_salt, true); - db_query($link, "UPDATE ttrss_users SET pwd_hash = '$pwd_hash', salt = '$new_salt' + db_query("UPDATE ttrss_users SET pwd_hash = '$pwd_hash', salt = '$new_salt' WHERE id = '$uid'"); if ($show_password) { -- 2.39.5