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 @@ -360,6 +360,8 @@ the :class:`Symfony\\Component\\RateLimiter\\Reservation` object returned by the
360
360
}
361
361
}
362
362
363
+ .. _rate-limiter-storage :
364
+
363
365
Storing Rate Limiter State
364
366
--------------------------
365
367
Original file line number Diff line number Diff line change @@ -1462,6 +1462,10 @@ You must enable this using the ``login_throttling`` setting:
1462
1462
1463
1463
The ``login_throttling.interval `` option was introduced in Symfony 5.3.
1464
1464
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
+
1465
1469
Login attempts are limited on ``max_attempts `` (default: 5)
1466
1470
failed requests for ``IP address + username `` and ``5 * max_attempts ``
1467
1471
failed requests for ``IP address ``. The second limit protects against an
You can’t perform that action at this time.
0 commit comments