mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Optimized flash messages
This commit is contained in:
@@ -21,7 +21,7 @@ class SecurityController extends AbstractController
|
||||
{
|
||||
$error = $authenticationUtils->getLastAuthenticationError();
|
||||
if ($error) {
|
||||
$this->addFlash('notice', $error);
|
||||
$this->addFlash('danger', $error->getMessage());
|
||||
}
|
||||
return $this->render("user/login.html.twig",[
|
||||
'last_username'=>$authenticationUtils->getLastUsername(),
|
||||
|
Reference in New Issue
Block a user