Native throttling
This commit is contained in:
+1
-1
@@ -59,6 +59,6 @@ class Kernel extends HttpKernel
|
||||
'ready' => 'CachetHQ\Cachet\Http\Middleware\ReadyForUse',
|
||||
'setup' => 'CachetHQ\Cachet\Http\Middleware\SetupAlreadyCompleted',
|
||||
'subscribers' => 'CachetHQ\Cachet\Http\Middleware\SubscribersConfigured',
|
||||
'throttling' => 'GrahamCampbell\Throttle\Http\Middleware\ThrottleMiddleware',
|
||||
'throttle' => 'Illuminate\Routing\Middleware\ThrottleRequests',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ class AuthRoutes
|
||||
]);
|
||||
|
||||
$router->post('login', [
|
||||
'middleware' => ['guest', 'throttling:10,10'],
|
||||
'middleware' => ['guest', 'throttle:10,10'],
|
||||
'uses' => 'AuthController@postLogin',
|
||||
]);
|
||||
|
||||
@@ -47,7 +47,7 @@ class AuthRoutes
|
||||
]);
|
||||
|
||||
$router->post('2fa', [
|
||||
'middleware' => ['throttling:10,10'],
|
||||
'middleware' => ['throttle:10,10'],
|
||||
'uses' => 'AuthController@postTwoFactor',
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user