File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -356,6 +356,8 @@ the :class:`Symfony\\Component\\RateLimiter\\Reservation` object returned by the
356356 }
357357 }
358358
359+ .. _rate-limiter-storage :
360+
359361Storing Rate Limiter State
360362--------------------------
361363
Original file line number Diff line number Diff 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+
14571461Login attempts are limited on ``max_attempts `` (default: 5)
14581462failed requests for ``IP address + username `` and ``5 * max_attempts ``
14591463failed requests for ``IP address ``. The second limit protects against an
You can’t perform that action at this time.
0 commit comments