Merge pull request #3950 from ipunkt/2.4

Fix RemoteUserAuthenticate running after Authenticate
This commit is contained in:
James Brooks 2020-02-27 09:43:55 +00:00 committed by GitHub
commit 4435526b0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,8 +151,8 @@ class RouteServiceProvider extends ServiceProvider
];
if ($applyAlwaysAuthenticate && !$this->isWhiteListedAuthRoute($routes)) {
$middleware[] = Authenticate::class;
$middleware[] = RemoteUserAuthenticate::class;
$middleware[] = Authenticate::class;
}
$router->group(['middleware' => $middleware], function (Router $router) use ($routes) {