Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Make sure we don't get a doctrine error message.
Browse files Browse the repository at this point in the history
The old exception message gave us a lot of info about our application.
This could help a user find out we're running Symfony and find possible
exploits. This commit will hide the message behind a translated version
of the message of the exception.
  • Loading branch information
WouterSioen committed Jun 22, 2015
1 parent 4ac78ef commit abe4993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/views/Security/login.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

{% if error %}
<div class="alert alert-info">
{{ error|trans }}
{{ error.messageKey|trans(error.messageData, 'security') }}
</div>
{% endif %}

Expand Down

0 comments on commit abe4993

Please sign in to comment.