mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
feature: Better error messages for ad_auth (#4385)
This commit is contained in:
@@ -102,7 +102,12 @@ if ((isset($_SESSION['username'])) || (isset($_COOKIE['sess_id'],$_COOKIE['token
|
||||
exit;
|
||||
}
|
||||
} elseif (isset($_SESSION['username'])) {
|
||||
$auth_message = 'Authentication Failed';
|
||||
global $auth_error;
|
||||
if (isset($auth_error)) {
|
||||
$auth_message = $auth_error;
|
||||
} else {
|
||||
$auth_message = 'Authentication Failed';
|
||||
}
|
||||
unset($_SESSION['authenticated']);
|
||||
dbInsert(array('user' => $_SESSION['username'], 'address' => get_client_ip(), 'result' => 'Authentication Failure'), 'authlog');
|
||||
}
|
||||
|
Reference in New Issue
Block a user