From 574f573d4cdf89c232fbfe3e84b6ff1d55dd55f1 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 20 May 2024 22:57:18 +0200 Subject: [PATCH] [SecurityBundle] Use %container.build_hash% instead of %kernel.secret% with the rate-limiter --- .../Security/Factory/LoginThrottlingFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/LoginThrottlingFactory.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/LoginThrottlingFactory.php index b62720bfd80d8..242affefd58d7 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/LoginThrottlingFactory.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/LoginThrottlingFactory.php @@ -76,7 +76,7 @@ public function createAuthenticator(ContainerBuilder $container, string $firewal $container->register($config['limiter'] = 'security.login_throttling.'.$firewallName.'.limiter', DefaultLoginRateLimiter::class) ->addArgument(new Reference('limiter.'.$globalId)) ->addArgument(new Reference('limiter.'.$localId)) - ->addArgument('%kernel.secret%') + ->addArgument('%container.build_hash%') ; }