nextcloud/tests/lib/AppFramework
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
..
Controller Fix unit tests 2017-03-28 21:00:12 -06:00
Db Fix getMock MapperTestUtility 2016-09-07 20:42:37 +02:00
DependencyInjection Add DI intergration tests 2017-03-21 08:52:20 +01:00
Http Make BruteForceProtection annotation more clever 2017-04-13 23:05:33 +02:00
Middleware Make BruteForceProtection annotation more clever 2017-04-13 23:05:33 +02:00
Routing Allow ocs/v2.php/cloud/... routes 2016-08-08 15:01:26 +02:00
Utility Add tests for multiple parameters 2017-04-13 12:00:18 +02:00
AppTest.php No body or content-length for 204 and 304 responses 2016-08-31 23:07:48 +02:00