From 40227c98683c13dc68caceadb78328bbbccc9c35 Mon Sep 17 00:00:00 2001 From: Damien Carrier Date: Thu, 28 Dec 2023 21:43:45 +0100 Subject: [PATCH] [Security] Fixing PHP example for limiting login attempts with rate limiter --- security.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security.rst b/security.rst index aaf2f600a21..80fbbb1c2f1 100644 --- a/security.rst +++ b/security.rst @@ -1653,7 +1653,7 @@ and set the ``limiter`` option to its service ID: - + %kernel.secret% @@ -1697,7 +1697,7 @@ and set the ``limiter`` option to its service ID: // 2nd argument is the limiter for username+IP new Reference('limiter.username_ip_login'), // 3rd argument is the app secret - new Reference('kernel.secret'), + param('kernel.secret'), ]); $security->firewall('main')