@@ -1353,14 +1353,10 @@ You must enable this using the ``login_throttling`` setting:
1353
1353
# by default, the feature allows 5 login attempts per minute
1354
1354
login_throttling : null
1355
1355
1356
- # configure the maximum login attempts (per minute)
1356
+ # configure the maximum login attempts
1357
1357
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
1364
1360
1365
1361
# use a custom rate limiter via its service ID
1366
1362
login_throttling :
@@ -1383,13 +1379,9 @@ You must enable this using the ``login_throttling`` setting:
1383
1379
<!-- ... -->
1384
1380
1385
1381
<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. -->
1393
1385
<login-throttling max-attempts =" 3" interval =" 15 minutes" />
1394
1386
1395
1387
<!-- use a custom rate limiter via its service ID -->
@@ -1409,17 +1401,9 @@ You must enable this using the ``login_throttling`` setting:
1409
1401
$mainFirewall = $security->firewall('main');
1410
1402
1411
1403
// 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
1420
1404
$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.
1423
1407
;
1424
1408
};
1425
1409
0 commit comments