diff --git a/application/src/Controller/SecurityController.php b/application/src/Controller/SecurityController.php index d2e5cd4..67ab0a4 100644 --- a/application/src/Controller/SecurityController.php +++ b/application/src/Controller/SecurityController.php @@ -22,8 +22,7 @@ class SecurityController extends AbstractController { $error = $authenticationUtils->getLastAuthenticationError(); if ($error) { - $this->addFlash('danger', $error->getMessage()); - #$this->addFlash('info', $translator->trans('Code:%code%',['%code%'=>$error->getMessageKey()])); + $this->addFlash('danger', $translator->trans($error->getMessageKey(),$error->getMessageData(),'security')); }else{ $lastUsername = $authenticationUtils->getLastUsername(); if($lastUsername){