Native throttling

This commit is contained in:
Graham Campbell
2016-02-25 21:26:46 +00:00
parent 08b490a3cc
commit 1ab9d95b9c
6 changed files with 5 additions and 98 deletions
+1 -1
View File
@@ -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',
];
}
+2 -2
View File
@@ -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',
]);