mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-08 12:07:42 +08:00
parent
739b9c97d7
commit
866e182c31
@ -29,7 +29,7 @@ class RouteServiceProvider extends ServiceProvider
|
|||||||
|
|
||||||
foreach ($router->getRoutes()->getRoutesByName() as $name => $route) {
|
foreach ($router->getRoutes()->getRoutesByName() as $name => $route) {
|
||||||
if (Str::startsWith($name, ['passport.authorizations', 'passport.tokens', 'passport.clients'])) {
|
if (Str::startsWith($name, ['passport.authorizations', 'passport.tokens', 'passport.clients'])) {
|
||||||
$route->middleware('verified');
|
$route->middleware(['auth', 'verified']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user