mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-10-10 17:58:07 +02:00
Implemented automatical translation
This commit is contained in:
@@ -22,8 +22,7 @@ class SecurityController extends AbstractController
|
|||||||
{
|
{
|
||||||
$error = $authenticationUtils->getLastAuthenticationError();
|
$error = $authenticationUtils->getLastAuthenticationError();
|
||||||
if ($error) {
|
if ($error) {
|
||||||
$this->addFlash('danger', $error->getMessage());
|
$this->addFlash('danger', $translator->trans($error->getMessageKey(),$error->getMessageData(),'security'));
|
||||||
#$this->addFlash('info', $translator->trans('Code:%code%',['%code%'=>$error->getMessageKey()]));
|
|
||||||
}else{
|
}else{
|
||||||
$lastUsername = $authenticationUtils->getLastUsername();
|
$lastUsername = $authenticationUtils->getLastUsername();
|
||||||
if($lastUsername){
|
if($lastUsername){
|
||||||
|
Reference in New Issue
Block a user