From b8f6185554304e89675f4c36b8ad7fbba543be4d Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Wed, 12 Sep 2018 18:37:22 +0200 Subject: [PATCH] Implemented automatical translation --- application/src/Controller/SecurityController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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){