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

Skip to content

Commit 41c05cd

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: [Security] Adding info where login attempts are stored
2 parents 0645727 + 511d460 commit 41c05cd

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
@@ -1454,6 +1454,10 @@ You must enable this using the ``login_throttling`` setting:
14541454
units accepted by the `PHP date relative formats`_ (e.g. ``3 seconds``,
14551455
``10 hours``, ``1 day``, etc.)
14561456

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

0 commit comments

Comments
 (0)