update check for api key

This commit is contained in:
Nabeel Shahzad
2017-12-30 13:02:22 -06:00
parent 87867746aa
commit caac722a72
2 changed files with 4 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ class ApiAuth
{
// Check if Authorization header is in place
$auth = $request->header('Authorization', null);
if(empty($auth)) {
if($auth === null) {
return $this->unauthorized('Authorization header missing');
}