From: Andrew Dolgov Date: Wed, 10 Feb 2010 12:16:52 +0000 (+0300) Subject: pref-prefs: properly update session pwd hash when changing password X-Git-Tag: 1.4.1~14 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d43f7837753b3d3f66b8368f35fdc6622b0bc5fb;p=tt-rss.git pref-prefs: properly update session pwd hash when changing password --- 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.');