Skip to content

Commit

Permalink
Fix translation of auth provider messages
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed May 20, 2024
1 parent b738752 commit 8b63a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/Type/LoginFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Check warning on line 61 in src/Form/Type/LoginFormType.php

View check run for this annotation

Codecov / codecov/patch

src/Form/Type/LoginFormType.php#L61

Added line #L61 was not covered by tests

$event->getForm()->addError(new FormError($message));
}
Expand Down

0 comments on commit 8b63a0d

Please sign in to comment.