]> git.wh0rd.org Git - tt-rss.git/commitdiff
add hide_change_password session variable
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 16 Aug 2012 11:58:13 +0000 (15:58 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 16 Aug 2012 11:58:13 +0000 (15:58 +0400)
classes/auth_remote.php
classes/pref_prefs.php
include/functions.php

index 6892a3528b6d79f4f82b5b5c71586d247e1f6c10..789976050eafb5c98a1586ef73c54f640b521d2a 100644 (file)
@@ -31,6 +31,7 @@ class Auth_Remote extends Auth_Base {
                                $_SESSION["fake_password"] = "******";
                                $_SESSION["hide_hello"] = true;
                                $_SESSION["hide_logout"] = true;
+                               $_SESSION["hide_change_password"] = true;
 
                                // LemonLDAP can send user informations via HTTP HEADER
                                if (defined('AUTH_AUTO_CREATE') && AUTH_AUTO_CREATE){
index a51fad2a44466ba98e5117c61b15fd8a0f900ec6..9d2095217518fcecfe2ad9b6517cfc009533738a 100644 (file)
@@ -214,7 +214,7 @@ class Pref_Prefs extends Protected_Handler {
 
                print "</form>";
 
-               if (!SINGLE_USER_MODE && !$_SESSION["hide_logout"]) {
+               if (!SINGLE_USER_MODE && !$_SESSION["hide_change_password"]) {
 
                        $result = db_query($this->link, "SELECT id FROM ttrss_users
                                WHERE id = ".$_SESSION["uid"]." AND pwd_hash
index 761cfee8dc6b095148e50948dce33b9a8ecb113d..dfe48c596a0a167567caf13586580b84ee5ade47 100644 (file)
 
                        $_SESSION["hide_hello"] = true;
                        $_SESSION["hide_logout"] = true;
+                       $_SESSION["hide_change_password"] = true;
 
                        if (!$_SESSION["csrf_token"]) {
                                $_SESSION["csrf_token"] = sha1(uniqid(rand(), true));