Commit 9d989a5
committed
minor #19354 [Security] Fixing PHP example for limiting login attempts with rate limiter (MirakuSan)
This PR was squashed before being merged into the 6.4 branch.
Discussion
----------
[Security] Fixing PHP example for limiting login attempts with rate limiter
After struggling with the rate limiter on my app.
I think the PHP example for « limiting login attempts » with a rate limiter has a bad copy/paste for the third option to pass to the container to register the `DefaultLoginRateLimiter::class`.
Using `new Reference('kernel.secret')` , I had an error telling me `No services 'kernel.secret' found`
Here is what I used and worked for me and so it is my proposal 🙏
Commits
-------
40227c9 [Security] Fixing PHP example for limiting login attempts with rate limiter1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1653 | 1653 | | |
1654 | 1654 | | |
1655 | 1655 | | |
1656 | | - | |
| 1656 | + | |
1657 | 1657 | | |
1658 | 1658 | | |
1659 | 1659 | | |
| |||
1697 | 1697 | | |
1698 | 1698 | | |
1699 | 1699 | | |
1700 | | - | |
| 1700 | + | |
1701 | 1701 | | |
1702 | 1702 | | |
1703 | 1703 | | |
| |||
0 commit comments