]> git.wh0rd.org Git - tt-rss.git/commitdiff
Remove obsolete $link parameter for password reset
authorTrannie Carter <tcarter@nottwo.org>
Sat, 4 May 2013 00:44:24 +0000 (20:44 -0400)
committerTrannie Carter <tcarter@nottwo.org>
Sat, 4 May 2013 00:44:24 +0000 (20:44 -0400)
classes/pref/users.php

index 4b7d2d69a77afd61e990b52949883e806a1452cb..3e8b2299dd2329c895a12c53e01a1630ddf3e028 100644 (file)
@@ -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) {