diff --git a/src/Controller/AccountController.php b/src/Controller/AccountController.php index 23c8878d..60f79bfa 100644 --- a/src/Controller/AccountController.php +++ b/src/Controller/AccountController.php @@ -90,7 +90,7 @@ public function loginAction( return $this->render('account/login.html.twig', [ 'form' => $form->createView(), - 'error' => $error, + 'error' => $error ? 'Credentials are not valid.' : '', 'hideBreadcrumbs' => true ]); } diff --git a/templates/account/login.html.twig b/templates/account/login.html.twig index be19c234..1474b5a1 100644 --- a/templates/account/login.html.twig +++ b/templates/account/login.html.twig @@ -11,7 +11,7 @@ {% if error %}
- {{ error.getMessage() }} + {{ error }}
{% endif %}