diff options
author | Andrew Dolgov <[email protected]> | 2010-02-10 15:16:52 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-02-10 15:16:52 +0300 |
commit | d43f7837753b3d3f66b8368f35fdc6622b0bc5fb (patch) | |
tree | 52d376f97ae2f55b7bfb3fab65cd5a72966b5534 | |
parent | 4c59adb1de97ffa40ae4cb3a0c82d93e40e68612 (diff) |
pref-prefs: properly update session pwd hash when changing password
-rw-r--r-- | modules/pref-prefs.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index da5ae60bf..a55d78f9f 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.'); |