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

Skip to content

Commit 885e9c3

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: [Security] Adding info where login attempts are stored
2 parents 44fe3b2 + f83e1d3 commit 885e9c3

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
@@ -356,6 +356,8 @@ the :class:`Symfony\\Component\\RateLimiter\\Reservation` object returned by the
356356
}
357357
}
358358

359+
.. _rate-limiter-storage:
360+
359361
Storing Rate Limiter State
360362
--------------------------
361363

security.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,6 +1414,10 @@ You must enable this using the ``login_throttling`` setting:
14141414
units accepted by the `PHP date relative formats`_ (e.g. ``3 seconds``,
14151415
``10 hours``, ``1 day``, etc.)
14161416

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

0 commit comments

Comments
 (0)