Implement basic security policy on daemon remote routes

This commit is contained in:
Dane Everitt 2017-01-27 16:34:46 -05:00
parent 9087feec4f
commit 4b0197f2be
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 74 additions and 6 deletions

View file

@ -51,6 +51,7 @@ class Kernel extends HttpKernel
'guest' => \Pterodactyl\Http\Middleware\RedirectIfAuthenticated::class,
'server' => \Pterodactyl\Http\Middleware\CheckServer::class,
'admin' => \Pterodactyl\Http\Middleware\AdminAuthenticate::class,
'daemon' => \Pterodactyl\Http\Middleware\DaemonAuthenticate::class,
'csrf' => \Pterodactyl\Http\Middleware\VerifyCsrfToken::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
'can' => \Illuminate\Auth\Middleware\Authorize::class,