1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-25 17:31:30 +00:00

pref-prefs: properly update session pwd hash when changing password

This commit is contained in:
Andrew Dolgov
2010-02-10 15:16:52 +03:00
parent 4c59adb1de
commit d43f783775

View File

@@ -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.');