Perform a bit of code cleanup

This commit is contained in:
DaneEveritt 2022-05-22 17:23:48 -04:00
parent be88e4e893
commit 4d3362b24f
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
6 changed files with 6 additions and 82 deletions

View file

@ -1,26 +0,0 @@
<?php
namespace Pterodactyl\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Auth\AuthenticationException;
class Authenticate
{
/**
* Handle an incoming request.
*
* @return mixed
*
* @throws \Illuminate\Auth\AuthenticationException
*/
public function handle(Request $request, Closure $next)
{
if (!$request->user()) {
throw new AuthenticationException();
}
return $next($request);
}
}