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 @@ -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+
14171421Login attempts are limited on ``max_attempts `` (default: 5)
14181422failed requests for ``IP address + username `` and ``5 * max_attempts ``
14191423failed requests for ``IP address ``. The second limit protects against an
You can’t perform that action at this time.
0 commit comments