@@ -1353,14 +1353,10 @@ You must enable this using the ``login_throttling`` setting:
13531353 # by default, the feature allows 5 login attempts per minute
13541354 login_throttling : null
13551355
1356- # configure the maximum login attempts (per minute)
1356+ # configure the maximum login attempts
13571357 login_throttling :
1358- max_attempts : 3
1359-
1360- # configure the maximum login attempts in a custom period of time
1361- login_throttling :
1362- max_attempts : 3
1363- interval : ' 15 minutes'
1358+ max_attempts : 3 # per minute ...
1359+ # interval: '15 minutes' # ... or in a custom period
13641360
13651361 # use a custom rate limiter via its service ID
13661362 login_throttling :
@@ -1383,13 +1379,9 @@ You must enable this using the ``login_throttling`` setting:
13831379 <!-- ... -->
13841380
13851381 <firewall name =" main" >
1386- <!-- by default, the feature allows 5 login attempts per minute -->
1387- <login-throttling />
1388-
1389- <!-- configure the maximum login attempts (per minute) -->
1390- <login-throttling max-attempts =" 3" />
1391-
1392- <!-- configure the maximum login attempts in a custom period of time -->
1382+ <!-- by default, the feature allows 5 login attempts per minute
1383+ max-attempts: (optional) You can configure the maximum attempts ...
1384+ interval: (optional) ... and the period of time. -->
13931385 <login-throttling max-attempts =" 3" interval =" 15 minutes" />
13941386
13951387 <!-- use a custom rate limiter via its service ID -->
@@ -1409,17 +1401,9 @@ You must enable this using the ``login_throttling`` setting:
14091401 $mainFirewall = $security->firewall('main');
14101402
14111403 // by default, the feature allows 5 login attempts per minute
1412- $mainFirewall->loginThrottling();
1413-
1414- // configure the maximum login attempts (per minute)
1415- $mainFirewall->loginThrottling()
1416- ->maxAttempts(3)
1417- ;
1418-
1419- // configure the maximum login attempts in a custom period of time
14201404 $mainFirewall->loginThrottling()
1421- ->maxAttempts(3)
1422- ->interval('15 minutes')
1405+ // ->maxAttempts(3) // Optional: You can configure the maximum attempts ...
1406+ // ->interval('15 minutes') // ... and the period of time.
14231407 ;
14241408 };
14251409
0 commit comments