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)); }