@@ -1398,14 +1398,10 @@ You must enable this using the ``login_throttling`` setting:
1398
1398
# by default, the feature allows 5 login attempts per minute
1399
1399
login_throttling : null
1400
1400
1401
- # configure the maximum login attempts (per minute)
1401
+ # configure the maximum login attempts
1402
1402
login_throttling :
1403
- max_attempts : 3
1404
-
1405
- # configure the maximum login attempts in a custom period of time
1406
- login_throttling :
1407
- max_attempts : 3
1408
- interval : ' 15 minutes'
1403
+ max_attempts : 3 # per minute ...
1404
+ # interval: '15 minutes' # ... or in a custom period
1409
1405
1410
1406
# use a custom rate limiter via its service ID
1411
1407
login_throttling :
@@ -1428,13 +1424,9 @@ You must enable this using the ``login_throttling`` setting:
1428
1424
<!-- ... -->
1429
1425
1430
1426
<firewall name =" main" >
1431
- <!-- by default, the feature allows 5 login attempts per minute -->
1432
- <login-throttling />
1433
-
1434
- <!-- configure the maximum login attempts (per minute) -->
1435
- <login-throttling max-attempts =" 3" />
1436
-
1437
- <!-- configure the maximum login attempts in a custom period of time -->
1427
+ <!-- by default, the feature allows 5 login attempts per minute
1428
+ max-attempts: (optional) You can configure the maximum attempts ...
1429
+ interval: (optional) ... and the period of time. -->
1438
1430
<login-throttling max-attempts =" 3" interval =" 15 minutes" />
1439
1431
1440
1432
<!-- use a custom rate limiter via its service ID -->
@@ -1454,17 +1446,9 @@ You must enable this using the ``login_throttling`` setting:
1454
1446
$mainFirewall = $security->firewall('main');
1455
1447
1456
1448
// by default, the feature allows 5 login attempts per minute
1457
- $mainFirewall->loginThrottling();
1458
-
1459
- // configure the maximum login attempts (per minute)
1460
- $mainFirewall->loginThrottling()
1461
- ->maxAttempts(3)
1462
- ;
1463
-
1464
- // configure the maximum login attempts in a custom period of time
1465
1449
$mainFirewall->loginThrottling()
1466
- ->maxAttempts(3)
1467
- ->interval('15 minutes')
1450
+ // ->maxAttempts(3) // Optional: You can configure the maximum attempts ...
1451
+ // ->interval('15 minutes') // ... and the period of time.
1468
1452
;
1469
1453
};
1470
1454
0 commit comments