]> git.wh0rd.org Git - tt-rss.git/commitdiff
pref-prefs: properly update session pwd hash when changing password
authorAndrew Dolgov <fox@bah.org.ru>
Wed, 10 Feb 2010 12:16:52 +0000 (15:16 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Wed, 10 Feb 2010 12:16:52 +0000 (15:16 +0300)
modules/pref-prefs.php

index da5ae60bf41cff18be450fbe3fc17d84b23aae64..a55d78f9f5bf043269bedeadef38503e97755437 100644 (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.');