Skip to content

Commit

Permalink
Add login rate limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
AchillesKal committed Apr 29, 2024
1 parent 1c3732f commit afcad5e
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"symfony/monolog-bundle": "^3.0",
"symfony/property-access": "7.0.*",
"symfony/property-info": "7.0.*",
"symfony/rate-limiter": "7.0.*",
"symfony/runtime": "7.0.*",
"symfony/security-bundle": "7.0.*",
"symfony/security-csrf": "7.0.*",
Expand Down
72 changes: 71 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions config/packages/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ security:
remember_me:
secret: '%kernel.secret%' # required
lifetime: 604800 # 1 week in seconds

login_throttling:
max_attempts: 5
interval: '10 minutes'

# activate different ways to authenticate
# https://symfony.com/doc/current/security.html#the-firewall
Expand Down

0 comments on commit afcad5e

Please sign in to comment.