nextcloud/tests/lib/AppFramework/Middleware
Lukas Reschke 8149945a91
Make BruteForceProtection annotation more clever
This makes the new `@BruteForceProtection` annotation more clever and moves the relevant code into it's own middleware.

Basically you can now set `@BruteForceProtection(action=$key)` as annotation and that will make the controller bruteforce protected. However, the difference to before is that you need to call `$responmse->throttle()` to increase the counter. Before the counter was increased every time which leads to all kind of unexpected problems.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-04-13 23:05:33 +02:00
..
Security Make BruteForceProtection annotation more clever 2017-04-13 23:05:33 +02:00
MiddlewareDispatcherTest.php Fix phpunit-5.4 wargning 2016-07-11 08:50:07 +02:00
MiddlewareTest.php Fix phpunit-5.4 wargning 2016-07-11 08:50:07 +02:00
OCSMiddlewareTest.php Split OCS version handling 2016-09-06 11:57:39 +02:00
SessionMiddlewareTest.php Fix phpunit-5.4 wargning 2016-07-11 08:50:07 +02:00