File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1601,6 +1601,7 @@ and set the ``limiter`` option to its service ID:
1601
1601
$globalFactory : ' @limiter.ip_login'
1602
1602
# localFactory is the limiter for username+IP
1603
1603
$localFactory : ' @limiter.username_ip_login'
1604
+ $secret : ' %kernel.secret%'
1604
1605
1605
1606
security :
1606
1607
firewalls :
@@ -1651,6 +1652,8 @@ and set the ``limiter`` option to its service ID:
1651
1652
<srv : argument type =" service" id =" limiter.ip_login" />
1652
1653
<!-- 2nd argument is the limiter for username+IP -->
1653
1654
<srv : argument type =" service" id =" limiter.username_ip_login" />
1655
+ <!-- 3rd argument is the app secret -->
1656
+ <srv : argument type =" service" id =" %kernel.secret%" />
1654
1657
</srv : service >
1655
1658
</srv : services >
1656
1659
@@ -1693,6 +1696,8 @@ and set the ``limiter`` option to its service ID:
1693
1696
new Reference('limiter.ip_login'),
1694
1697
// 2nd argument is the limiter for username+IP
1695
1698
new Reference('limiter.username_ip_login'),
1699
+ // 3rd argument is the app secret
1700
+ new Reference('kernel.secret'),
1696
1701
]);
1697
1702
1698
1703
$security->firewall('main')
You can’t perform that action at this time.
0 commit comments