mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
kludge from lenwe
git-svn-id: http://www.observium.org/svn/observer/trunk@2188 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -31,6 +31,11 @@ if (isset($_GET['logout']) && $_SESSION['authenticated'])
|
|||||||
$auth_message = "Logged Out";
|
$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']))
|
if (isset($_GET['username']) && isset($_GET['password']))
|
||||||
{
|
{
|
||||||
$_SESSION['username'] = mres($_GET['username']);
|
$_SESSION['username'] = mres($_GET['username']);
|
||||||
|
|||||||
Reference in New Issue
Block a user