File tree 2 files changed +6
-0
lines changed
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
356
356
}
357
357
}
358
358
359
+ .. _rate-limiter-storage :
360
+
359
361
Storing Rate Limiter State
360
362
--------------------------
361
363
Original file line number Diff line number Diff line change @@ -1454,6 +1454,10 @@ You must enable this using the ``login_throttling`` setting:
1454
1454
units accepted by the `PHP date relative formats `_ (e.g. ``3 seconds ``,
1455
1455
``10 hours ``, ``1 day ``, etc.)
1456
1456
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
+
1457
1461
Login attempts are limited on ``max_attempts `` (default: 5)
1458
1462
failed requests for ``IP address + username `` and ``5 * max_attempts ``
1459
1463
failed requests for ``IP address ``. The second limit protects against an
You can’t perform that action at this time.
0 commit comments