Skip to content

Commit 2aff8d9

Browse files
[Security] Add RateLimiter requirement command
1 parent 149876b commit 2aff8d9

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)