Format
This commit is contained in:
@@ -15,10 +15,9 @@ class Authentication
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if ($request->header('Gql-Session') === 'SUPER_SECRET_KEY_HEADER') {
|
||||
return "";
|
||||
}
|
||||
else {
|
||||
throw new AccessDeniedHttpException;
|
||||
return '';
|
||||
} else {
|
||||
throw new AccessDeniedHttpException();
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
|
||||
Reference in New Issue
Block a user