Optimized Entities, Controllers and tests

This commit is contained in:
Kevin Frantz
2018-09-06 20:20:29 +02:00
parent 69ea47facd
commit cff5afe018
6 changed files with 13 additions and 7 deletions

View File

@@ -22,7 +22,10 @@ class SecurityController extends AbstractController
$error = $authenticationUtils->getLastAuthenticationError();
if ($error) {
$this->addFlash('danger', $error->getMessage());
}else{
$this->addFlash('success', "User loged in.");
}
$this->addFlash('info', $authenticationUtils->getLastUsername());
return $this->render("user/login.html.twig",[
'last_username'=>$authenticationUtils->getLastUsername(),
]);