Skip to content

Commit 8585caa

Browse files
committed
minor #18857 [Security] Add RateLimiter requirement command (alexandre-daubois)
This PR was merged into the 5.4 branch. Discussion ---------- [Security] Add RateLimiter requirement command Fix #17966 I was not able to reproduce ticket's owner error. However, I faced a missing requirement error when trying. I propose to add this code bock to fix this instead of facing a dependency error 👍 Commits ------- 2aff8d9 [Security] Add RateLimiter requirement command
2 parents 149876b + 2aff8d9 commit 8585caa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

security.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,13 @@ Internally, Symfony uses the :doc:`Rate Limiter component </rate_limiter>`
14561456
which by default uses Symfony's cache to store the previous login attempts.
14571457
However, you can implement a :ref:`custom storage <rate-limiter-storage>`.
14581458

1459+
In order to work, the Rate Limiter component must be installed in your
1460+
application by running the following command:
1461+
1462+
.. code-block:: terminal
1463+
1464+
$ composer require symfony/rate-limiter
1465+
14591466
Login attempts are limited on ``max_attempts`` (default: 5)
14601467
failed requests for ``IP address + username`` and ``5 * max_attempts``
14611468
failed requests for ``IP address``. The second limit protects against an

0 commit comments

Comments
 (0)