Skip to content

Commit a865da1

Browse files
Use different values for target_path_parameter and failure_path_parameter
1 parent 1fc80af commit a865da1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

security/form_login.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ The name of the hidden fields in the login form is also configurable using the
343343
main:
344344
# ...
345345
form_login:
346-
target_path_parameter: redirect_url
347-
failure_path_parameter: redirect_url
346+
target_path_parameter: login_success
347+
failure_path_parameter: login_fail
348348
349349
.. code-block:: xml
350350
@@ -361,8 +361,8 @@ The name of the hidden fields in the login form is also configurable using the
361361
362362
<firewall name="main">
363363
<!-- ... -->
364-
<form-login target-path-parameter="redirect_url" />
365-
<form-login failure-path-parameter="redirect_url" />
364+
<form-login target-path-parameter="login_success" />
365+
<form-login failure-path-parameter="login_fail" />
366366
</firewall>
367367
</config>
368368
</srv:container>
@@ -377,8 +377,8 @@ The name of the hidden fields in the login form is also configurable using the
377377
'main' => array(
378378
// ...
379379
'form_login' => array(
380-
'target_path_parameter' => 'redirect_url',
381-
'failure_path_parameter' => 'redirect_url',
380+
'target_path_parameter' => 'login_success',
381+
'failure_path_parameter' => 'login_fail',
382382
),
383383
),
384384
),

0 commit comments

Comments
 (0)