Skip to content

Commit 4f705b3

Browse files
committed
[security][form login] fix translations for the security messages.
1 parent 3ebe1b2 commit 4f705b3

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)