From d43f7837753b3d3f66b8368f35fdc6622b0bc5fb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 10 Feb 2010 15:16:52 +0300 Subject: [PATCH] pref-prefs: properly update session pwd hash when changing password --- modules/pref-prefs.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index da5ae60b..a55d78f9 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -69,6 +69,8 @@ db_query($link, "UPDATE ttrss_users SET pwd_hash = '$new_pw_hash' WHERE id = '$active_uid'"); + $_SESSION["pwd_hash"] = $new_pw_hash; + print __("Password has been changed."); } else { print "ERROR: ".__('Old password is incorrect.'); -- 2.39.5