Skip to content

Commit 804a9a9

Browse files
committed
bug #5249 [security][form login] fix translations for the security messages. (aitboudad)
This PR was merged into the 2.3 branch. Discussion ---------- [security][form login] fix translations for the security messages. | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all Commits ------- 4f705b3 [security][form login] fix translations for the security messages.
2 parents abd4b77 + 4f705b3 commit 804a9a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/security/form_login_setup.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Finally, create the template:
221221
{# ... you will probably extends your base template, like base.html.twig #}
222222

223223
{% if error %}
224-
<div>{{ error.messageKey|trans(error.messageData) }}</div>
224+
<div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
225225
{% endif %}
226226

227227
<form action="{{ path('login_check') }}" method="post">

0 commit comments

Comments
 (0)