mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
parent
4c97fb7d01
commit
dc9cfc1c81
@ -278,10 +278,11 @@ class Auth
|
||||
*/
|
||||
protected function authHttp()
|
||||
{
|
||||
if ($this->getRequest()->isXmlHttpRequest()) {
|
||||
$request = $this->getRequest();
|
||||
if ($request->isXmlHttpRequest()) {
|
||||
return false;
|
||||
}
|
||||
if (($header = $this->getRequest()->getHeader('Authorization')) === false) {
|
||||
if (($header = $request->getHeader('Authorization')) === false) {
|
||||
return false;
|
||||
}
|
||||
if (empty($header)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user