Skip to content

Commit

Permalink
feat: Use built-in symfony login throttling
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Jun 14, 2022
1 parent 5fcaabf commit 75234a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/packages/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ security:
pattern: ^/api
stateless: true
provider: all_users
login_throttling:
max_attempts: 3
json_login:
check_path: /api/token
username_path: username
Expand Down Expand Up @@ -57,7 +59,8 @@ security:
secret: '%kernel.secret%'
lifetime: 604800 # 1 week in seconds
path: /
# ...
login_throttling:
max_attempts: 3
logout:
path: logoutPage
guard:
Expand Down

0 comments on commit 75234a1

Please sign in to comment.