Apply fixes from StyleCI

This commit is contained in:
James Brooks
2019-01-03 19:45:59 +00:00
committed by StyleCI Bot
parent a033d1498d
commit 6ce087e5ad
3 changed files with 14 additions and 5 deletions

View File

@@ -14,6 +14,7 @@ namespace CachetHQ\Cachet\Foundation\Providers;
use Barryvdh\Cors\HandleCors;
use CachetHQ\Cachet\Http\Middleware\Acceptable;
use CachetHQ\Cachet\Http\Middleware\Authenticate;
use CachetHQ\Cachet\Http\Middleware\RemoteUserAuthenticate;
use CachetHQ\Cachet\Http\Middleware\Timezone;
use CachetHQ\Cachet\Http\Routes\ApiSystemRoutes;
use CachetHQ\Cachet\Http\Routes\AuthRoutes;
@@ -28,7 +29,6 @@ use Illuminate\Routing\Middleware\SubstituteBindings;
use Illuminate\Routing\Router;
use Illuminate\Session\Middleware\StartSession;
use Illuminate\View\Middleware\ShareErrorsFromSession;
use CachetHQ\Cachet\Http\Middleware\RemoteUserAuthenticate;
/**
* This is the route service provider.
@@ -150,7 +150,7 @@ class RouteServiceProvider extends ServiceProvider
VerifyCsrfToken::class,
SubstituteBindings::class,
];
if ($applyAlwaysAuthenticate && !$this->isWhiteListedAuthRoute($routes)) {
$middleware[] = Authenticate::class;
$middleware[] = RemoteUserAuthenticate::class;