Skip to content

Commit 000ed43

Browse files
Update form_login.rst
1 parent 1ff8e7c commit 000ed43

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

security/form_login.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ This option can also be set via the ``_failure_path`` request parameter:
304304
<form action="{{ path('login') }}" method="post">
305305
{# ... #}
306306

307-
<input type="hidden" name="_failure_path" value="{{ path('forgot_password') }}"/>
308-
<input type="submit" name="login"/>
307+
<input type="hidden" name="_failure_path" value="{{ path('forgot_password') }}">
308+
<input type="submit" name="login">
309309
</form>
310310

311311
Customizing the Target and Failure Request Parameters
@@ -383,7 +383,7 @@ are now fully customized:
383383
<form action="{{ path('login') }}" method="post">
384384
{# ... #}
385385

386-
<input type="hidden" name="go_to" value="{{ path('dashboard') }}"/>
387-
<input type="hidden" name="back_to" value="{{ path('forgot_password') }}"/>
388-
<input type="submit" name="login"/>
386+
<input type="hidden" name="go_to" value="{{ path('dashboard') }}">
387+
<input type="hidden" name="back_to" value="{{ path('forgot_password') }}">
388+
<input type="submit" name="login">
389389
</form>

0 commit comments

Comments
 (0)