nextcloud/lib/private/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
..
Core Cleanup usages 2016-10-29 14:29:50 +02:00
DependencyInjection Make BruteForceProtection annotation more clever 2017-04-13 23:05:33 +02:00
Http Use constants 2017-04-13 12:04:32 -05:00
Middleware Make BruteForceProtection annotation more clever 2017-04-13 23:05:33 +02:00
OCS Add trict CSP to OCS responses 2016-09-15 13:11:36 +02:00
Routing Match slashes in ../{id} resource routes 2017-04-04 08:37:11 +02:00
Utility Add isset() as it can be an empty result 2017-04-13 12:00:17 +02:00
App.php Also cache the namespace from appinfo 2017-03-22 11:50:31 +01:00
Http.php Fix others 2016-07-21 18:13:57 +02:00