Skip to content

Commit 4746433

Browse files
authored
[Task]: Replace the specific login error with a generic one (#553)
* avoid displaying the specifc login error and replace with a generic one * avoid displaying the specifc login error and replace with a generic one
1 parent 9acc781 commit 4746433

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Controller/AccountController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function loginAction(
9090

9191
return $this->render('account/login.html.twig', [
9292
'form' => $form->createView(),
93-
'error' => $error,
93+
'error' => $error ? 'Credentials are not valid.' : '',
9494
'hideBreadcrumbs' => true
9595
]);
9696
}

templates/account/login.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
{% if error %}
1313
<div class="alert alert-danger">
14-
{{ error.getMessage() }}
14+
{{ error }}
1515
</div>
1616
{% endif %}
1717

0 commit comments

Comments
 (0)