Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f83e1d3

Browse files
committed
minor #17135 [Security] Adding info where login attempts are stored (ThomasLandauer)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [Security] Adding info where login attempts are stored Commits ------- 7ad5d9f [Security] Adding info where login attempts are stored
2 parents 7dcd023 + 7ad5d9f commit f83e1d3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

rate_limiter.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ the :class:`Symfony\\Component\\RateLimiter\\Reservation` object returned by the
360360
}
361361
}
362362

363+
.. _rate-limiter-storage:
364+
363365
Storing Rate Limiter State
364366
--------------------------
365367

security.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,6 +1462,10 @@ You must enable this using the ``login_throttling`` setting:
14621462

14631463
The ``login_throttling.interval`` option was introduced in Symfony 5.3.
14641464

1465+
Internally, Symfony uses the :doc:`Rate Limiter component </rate_limiter>`
1466+
which by default uses Symfony's cache to store the previous login attempts.
1467+
However, you can implement a :ref:`custom storage <rate-limiter-storage>`.
1468+
14651469
Login attempts are limited on ``max_attempts`` (default: 5)
14661470
failed requests for ``IP address + username`` and ``5 * max_attempts``
14671471
failed requests for ``IP address``. The second limit protects against an

0 commit comments

Comments
 (0)