Skip to content

Commit 1315b3e

Browse files
Shortening code block for PHP
If you agree, I'll shorten YAML and XML too.
1 parent 9e11eea commit 1315b3e

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

security.rst

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,17 +1452,9 @@ You must enable this using the ``login_throttling`` setting:
14521452
$mainFirewall = $security->firewall('main');
14531453
14541454
// 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
14631455
$mainFirewall->loginThrottling()
1464-
->maxAttempts(3)
1465-
->interval('15 minutes')
1456+
// ->maxAttempts(3) // Optional: You can configure the maximum attempts ...
1457+
// ->interval('15 minutes') // ... and the period of time.
14661458
;
14671459
};
14681460

0 commit comments

Comments
 (0)