From cbbd3bfa04a8b3b5b9cf51f7f6ba4f74d59468b4 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Wed, 27 Apr 2011 19:35:15 +0000 Subject: [PATCH] kludge from lenwe git-svn-id: http://www.observium.org/svn/observer/trunk@2188 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/authenticate.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/html/includes/authenticate.inc.php b/html/includes/authenticate.inc.php index c45c95ddb9..d58e9c79f1 100644 --- a/html/includes/authenticate.inc.php +++ b/html/includes/authenticate.inc.php @@ -31,6 +31,11 @@ if (isset($_GET['logout']) && $_SESSION['authenticated']) $auth_message = "Logged Out"; } +if(isset($config['auth_mechanism']) and $config['auth_mechanism'] == 'http-auth' and !isset($_GET['logout'])){ + $_GET['username'] = ''; + $_GET['password'] = ''; +} + if (isset($_GET['username']) && isset($_GET['password'])) { $_SESSION['username'] = mres($_GET['username']);