From 9a07b57955b3804c320b4c7a161921b7d446f94e Mon Sep 17 00:00:00 2001 From: core23 Date: Mon, 20 May 2024 21:25:13 +0200 Subject: [PATCH] Fix translation of auth provider messages --- src/Form/Type/LoginFormType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/Type/LoginFormType.php b/src/Form/Type/LoginFormType.php index 3250655b..4803af72 100644 --- a/src/Form/Type/LoginFormType.php +++ b/src/Form/Type/LoginFormType.php @@ -58,7 +58,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($authenticationUtils): void { $error = $authenticationUtils->getLastAuthenticationError(); if (null !== $error) { - $message = $this->translator->trans($error->getMessageKey(), [], 'NucleosUserBundle'); + $message = $this->translator->trans($error->getMessageKey(), [], 'security'); $event->getForm()->addError(new FormError($message)); }