Skip to content

Commit 50f8f17

Browse files
committed
Merge pull request #1862 from leevigraham/failure_path
Added failure_path param
2 parents 279a6b9 + 350251f commit 50f8f17

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cookbook/security/form_login.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Form Login Configuration Reference
4242
# login failure redirecting options (read further below)
4343
failure_path: null
4444
failure_forward: false
45+
failure_target_path: _failure_path
4546
4647
# field names for the username and password fields
4748
username_parameter: _username
@@ -66,6 +67,7 @@ Form Login Configuration Reference
6667
use_referer="false"
6768
failure_path="null"
6869
failure_forward="false"
70+
failure_target_path="_failure_path"
6971
username_parameter="_username"
7072
password_parameter="_password"
7173
csrf_parameter="_csrf_token"
@@ -90,6 +92,7 @@ Form Login Configuration Reference
9092
'use_referer' => false,
9193
'failure_path' => null,
9294
'failure_forward' => false,
95+
'failure_target_path' => _failure_path,
9396
'username_parameter' => '_username',
9497
'password_parameter' => '_password',
9598
'csrf_parameter' => '_csrf_token',

reference/configuration/security.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ Each part will be explained in the next section.
120120
use_referer: false
121121
failure_path: /foo
122122
failure_forward: false
123+
failure_path_parameter: _failure_path
123124
failure_handler: some.service.id
124125
success_handler: some.service.id
125126
username_parameter: _username

0 commit comments

Comments
 (0)