Refactor middleware

This commit is contained in:
Graham Campbell
2015-12-24 16:52:56 +00:00
parent fa235857b7
commit 445f5c662a
12 changed files with 47 additions and 47 deletions
-4
View File
@@ -55,10 +55,6 @@ class ApiAuthenticate
} catch (ModelNotFoundException $e) {
throw new HttpException(401);
}
} elseif ($request->getUser()) {
if ($this->auth->onceBasic() !== null) {
throw new HttpException(401);
}
} else {
throw new HttpException(401);
}