Skip to content
Snippets Groups Projects
Unverified Commit 8149945a authored by Lukas Reschke's avatar Lukas Reschke
Browse files

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: default avatarLukas Reschke <lukas@statuscode.ch>
parent d0c0f6cf
No related branches found
No related tags found
Loading
Showing
with 329 additions and 247 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment