aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Security/RateLimiting/Backend/DatabaseBackend.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-05-241-21/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Refactors lib/private/Security.Faraz Samapoor2023-06-261-29/+18
| | | | | | Mainly using PHP8's constructor property promotion. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* feat(security): Allow to opt-out of ratelimit protection, e.g. for testing on CIJoas Schilling2023-04-031-6/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make the DB query simpler (as we just deleted all other entries)Joas Schilling2022-01-281-3/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Implement review feedbackLukas Reschke2021-09-131-3/+3
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Apply suggestions from code review Lukas Reschke2021-09-131-7/+5
| | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch> Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
* Implement PR review feedbackLukas Reschke2021-09-071-5/+0
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Adjust logic to store period instead of current timestampLukas Reschke2021-09-061-21/+16
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add database ratelimiting backendLukas Reschke2021-09-061-0/+136
In case no distributed memory cache is specified this adds a database backend for ratelimit purposes. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>