From fad3ed9a513b5446dcada08c3cc77e812d09042d Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Wed, 17 Jun 2015 14:11:36 +0100 Subject: [PATCH] Typo fixes --- app/Http/Middleware/ApiAuthenticate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Middleware/ApiAuthenticate.php b/app/Http/Middleware/ApiAuthenticate.php index 5f0559f9..dc26807e 100644 --- a/app/Http/Middleware/ApiAuthenticate.php +++ b/app/Http/Middleware/ApiAuthenticate.php @@ -55,10 +55,10 @@ class ApiAuthenticate } } elseif ($request->getUser()) { if ($this->auth->onceBasic() !== null) { - throw new AccessDeniedHttpException(); + throw new UnauthorizedHttpException(); } } else { - throw new AccessDeniedHttpException(); + throw new UnauthorizedHttpException(); } }