@@ -1396,14 +1396,10 @@ You must enable this using the ``login_throttling`` setting:
13961396 # by default, the feature allows 5 login attempts per minute
13971397 login_throttling : null
13981398
1399- # configure the maximum login attempts (per minute)
1399+ # configure the maximum login attempts
14001400 login_throttling :
1401- max_attempts : 3
1402-
1403- # configure the maximum login attempts in a custom period of time
1404- login_throttling :
1405- max_attempts : 3
1406- interval : ' 15 minutes'
1401+ max_attempts : 3 # per minute ...
1402+ # interval: '15 minutes' # ... or in a custom period
14071403
14081404 # use a custom rate limiter via its service ID
14091405 login_throttling :
@@ -1426,13 +1422,9 @@ You must enable this using the ``login_throttling`` setting:
14261422 <!-- ... -->
14271423
14281424 <firewall name =" main" >
1429- <!-- by default, the feature allows 5 login attempts per minute -->
1430- <login-throttling />
1431-
1432- <!-- configure the maximum login attempts (per minute) -->
1433- <login-throttling max-attempts =" 3" />
1434-
1435- <!-- configure the maximum login attempts in a custom period of time -->
1425+ <!-- by default, the feature allows 5 login attempts per minute
1426+ max-attempts: (optional) You can configure the maximum attempts ...
1427+ interval: (optional) ... and the period of time. -->
14361428 <login-throttling max-attempts =" 3" interval =" 15 minutes" />
14371429
14381430 <!-- use a custom rate limiter via its service ID -->
@@ -1452,17 +1444,9 @@ You must enable this using the ``login_throttling`` setting:
14521444 $mainFirewall = $security->firewall('main');
14531445
14541446 // by default, the feature allows 5 login attempts per minute
1455- $mainFirewall->loginThrottling();
1456-
1457- // configure the maximum login attempts (per minute)
1458- $mainFirewall->loginThrottling()
1459- ->maxAttempts(3)
1460- ;
1461-
1462- // configure the maximum login attempts in a custom period of time
14631447 $mainFirewall->loginThrottling()
1464- ->maxAttempts(3)
1465- ->interval('15 minutes')
1448+ // ->maxAttempts(3) // Optional: You can configure the maximum attempts ...
1449+ // ->interval('15 minutes') // ... and the period of time.
14661450 ;
14671451 };
14681452
0 commit comments