bugfix basic to Basic

This commit is contained in:
Nicola Beghin 2017-04-23 18:27:09 +02:00
parent 7cd9d4381a
commit a1eb067c71

View file

@ -89,7 +89,7 @@ class BasicAuthenticate extends BaseAuthenticate {
$pass = env('PHP_AUTH_PW');
} else {
$httpAuthorization = $request->header('Authorization');
if ($httpAuthorization !== false && strlen($httpAuthorization) > 0 && strpos($httpAuthorization, 'basic') !== false) {
if ($httpAuthorization !== false && strlen($httpAuthorization) > 0 && strpos($httpAuthorization, 'Basic') !== false) {
list($username, $pass) = explode(':', base64_decode(substr($httpAuthorization, 6)));
}
}