From 866e182c31ef77f8e266a8205fb509a3656d077c Mon Sep 17 00:00:00 2001 From: Steven Qiu Date: Fri, 12 Jan 2024 20:44:58 +0800 Subject: [PATCH] Fix #583 (#584) --- app/Providers/RouteServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index 8f53f562..7de756bf 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -29,7 +29,7 @@ class RouteServiceProvider extends ServiceProvider foreach ($router->getRoutes()->getRoutesByName() as $name => $route) { if (Str::startsWith($name, ['passport.authorizations', 'passport.tokens', 'passport.clients'])) { - $route->middleware('verified'); + $route->middleware(['auth', 'verified']); } }