mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-04-22 00:11:59 +02:00
Native throttling
This commit is contained in:
parent
08b490a3cc
commit
1ab9d95b9c
@ -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',
|
||||
]);
|
||||
|
||||
|
@ -31,7 +31,6 @@
|
||||
"graham-campbell/binput": "^3.3",
|
||||
"graham-campbell/core": "^4.2",
|
||||
"graham-campbell/markdown": "^6.0",
|
||||
"graham-campbell/throttle": "^5.1",
|
||||
"graham-campbell/exceptions": "^8.3",
|
||||
"guzzlehttp/guzzle": "^6.1",
|
||||
"jenssegers/date": "^3.1",
|
||||
|
65
composer.lock
generated
65
composer.lock
generated
@ -4,8 +4,8 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"hash": "4679aa1d77fd3d0e6a4edcc6b72b2e31",
|
||||
"content-hash": "be811d8ee1ae07b63536110056584327",
|
||||
"hash": "4c9b02be73cb5a201981e8fb59e1c12b",
|
||||
"content-hash": "8ad3d1b6eec470748458409d2fc149b7",
|
||||
"packages": [
|
||||
{
|
||||
"name": "alt-three/badger",
|
||||
@ -1328,67 +1328,6 @@
|
||||
],
|
||||
"time": "2016-01-30 14:22:10"
|
||||
},
|
||||
{
|
||||
"name": "graham-campbell/throttle",
|
||||
"version": "v5.1.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/GrahamCampbell/Laravel-Throttle.git",
|
||||
"reference": "10e1690424f0df5e98e6e8f7a27429b0d99507b4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/GrahamCampbell/Laravel-Throttle/zipball/10e1690424f0df5e98e6e8f7a27429b0d99507b4",
|
||||
"reference": "10e1690424f0df5e98e6e8f7a27429b0d99507b4",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"illuminate/cache": "5.1.*|5.2.*",
|
||||
"illuminate/contracts": "5.1.*|5.2.*",
|
||||
"illuminate/http": "5.1.*|5.2.*",
|
||||
"illuminate/support": "5.1.*|5.2.*",
|
||||
"php": ">=5.5.9"
|
||||
},
|
||||
"require-dev": {
|
||||
"graham-campbell/testbench": "^3.1",
|
||||
"mockery/mockery": "^0.9.4",
|
||||
"phpunit/phpunit": "^4.8|^5.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "5.1-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"GrahamCampbell\\Throttle\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Graham Campbell",
|
||||
"email": "graham@alt-three.com"
|
||||
}
|
||||
],
|
||||
"description": "Throttle Is A Rate Limiter For Laravel 5",
|
||||
"keywords": [
|
||||
"Graham Campbell",
|
||||
"GrahamCampbell",
|
||||
"Laravel Throttle",
|
||||
"Laravel-Throttle",
|
||||
"framework",
|
||||
"laravel",
|
||||
"rate limit",
|
||||
"throttle",
|
||||
"throttling"
|
||||
],
|
||||
"time": "2016-01-30 14:21:35"
|
||||
},
|
||||
{
|
||||
"name": "guzzlehttp/guzzle",
|
||||
"version": "6.1.1",
|
||||
|
@ -169,7 +169,6 @@ return [
|
||||
'GrahamCampbell\Core\CoreServiceProvider',
|
||||
'GrahamCampbell\Markdown\MarkdownServiceProvider',
|
||||
'GrahamCampbell\Security\SecurityServiceProvider',
|
||||
'GrahamCampbell\Throttle\ThrottleServiceProvider',
|
||||
'Jenssegers\Date\DateServiceProvider',
|
||||
'McCool\LaravelAutoPresenter\AutoPresenterServiceProvider',
|
||||
'PragmaRX\Google2FA\Vendor\Laravel\ServiceProvider',
|
||||
|
@ -1,30 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Cachet.
|
||||
*
|
||||
* (c) Alt Three Services Limited
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Driver
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This defines the cache driver to be used. It may be the name of any
|
||||
| driver set in config/cache.php. Setting it to null will use the driver
|
||||
| you have set as default in config/cache.php. Please note that a driver
|
||||
| that supports cache tags is required.
|
||||
|
|
||||
| Default: null
|
||||
|
|
||||
*/
|
||||
|
||||
'driver' => null,
|
||||
|
||||
];
|
Loading…
x
Reference in New Issue
Block a user