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
1 changed files with 2 additions and 0 deletions

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