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 @@ -1587,6 +1587,7 @@ and set the ``limiter`` option to its service ID:
1587
1587
$globalFactory : ' @limiter.ip_login'
1588
1588
# localFactory is the limiter for username+IP
1589
1589
$localFactory : ' @limiter.username_ip_login'
1590
+ $secret : ' %kernel.secret%'
1590
1591
1591
1592
security :
1592
1593
firewalls :
@@ -1637,6 +1638,8 @@ and set the ``limiter`` option to its service ID:
1637
1638
<srv : argument type =" service" id =" limiter.ip_login" />
1638
1639
<!-- 2nd argument is the limiter for username+IP -->
1639
1640
<srv : argument type =" service" id =" limiter.username_ip_login" />
1641
+ <!-- 3rd argument is the app secret -->
1642
+ <srv : argument type =" service" id =" %kernel.secret%" />
1640
1643
</srv : service >
1641
1644
</srv : services >
1642
1645
@@ -1679,6 +1682,8 @@ and set the ``limiter`` option to its service ID:
1679
1682
new Reference('limiter.ip_login'),
1680
1683
// 2nd argument is the limiter for username+IP
1681
1684
new Reference('limiter.username_ip_login'),
1685
+ // 3rd argument is the app secret
1686
+ new Reference('kernel.secret'),
1682
1687
]);
1683
1688
1684
1689
$security->firewall('main')
You can’t perform that action at this time.
0 commit comments