Fix parse error in Auth.php
This commit is contained in:
parent
45c95778ae
commit
c78a7912e7
|
@ -282,7 +282,8 @@ class Auth
|
||||||
if ($request->isXmlHttpRequest() || ! $request->isApiRequest()) {
|
if ($request->isXmlHttpRequest() || ! $request->isApiRequest()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (empty($header = $request->getHeader('Authorization'))) {
|
$header = $request->getHeader('Authorization');
|
||||||
|
if (empty($header)) {
|
||||||
$this->challengeHttp();
|
$this->challengeHttp();
|
||||||
}
|
}
|
||||||
list($scheme) = explode(' ', $header, 2);
|
list($scheme) = explode(' ', $header, 2);
|
||||||
|
|
Loading…
Reference in New Issue