Skip to content

Commit

Permalink
[Task]: Replace the specific login error with a generic one (#553)
Browse files Browse the repository at this point in the history
* avoid displaying the specifc login error and replace with a generic one

* avoid displaying the specifc login error and replace with a generic one
  • Loading branch information
kingjia90 committed Nov 1, 2023
1 parent 9acc781 commit 4746433
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Controller/AccountController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
]);
}
Expand Down
2 changes: 1 addition & 1 deletion templates/account/login.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

{% if error %}
<div class="alert alert-danger">
{{ error.getMessage() }}
{{ error }}
</div>
{% endif %}

Expand Down

0 comments on commit 4746433

Please sign in to comment.