mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Implemented automatical translation
This commit is contained in:
@@ -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){
|
||||
|
Reference in New Issue
Block a user