From 1e666f0aeba4abfb6a9e4b555640bcb4859de066 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 16 Aug 2012 15:58:13 +0400 Subject: [PATCH] add hide_change_password session variable --- classes/auth_remote.php | 1 + classes/pref_prefs.php | 2 +- include/functions.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/auth_remote.php b/classes/auth_remote.php index 6892a3528..789976050 100644 --- a/classes/auth_remote.php +++ b/classes/auth_remote.php @@ -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){ diff --git a/classes/pref_prefs.php b/classes/pref_prefs.php index a51fad2a4..9d2095217 100644 --- a/classes/pref_prefs.php +++ b/classes/pref_prefs.php @@ -214,7 +214,7 @@ class Pref_Prefs extends Protected_Handler { print ""; - 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 diff --git a/include/functions.php b/include/functions.php index 761cfee8d..dfe48c596 100644 --- a/include/functions.php +++ b/include/functions.php @@ -734,6 +734,7 @@ $_SESSION["hide_hello"] = true; $_SESSION["hide_logout"] = true; + $_SESSION["hide_change_password"] = true; if (!$_SESSION["csrf_token"]) { $_SESSION["csrf_token"] = sha1(uniqid(rand(), true));