File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ First, enable form login under your firewall:
42
42
<config >
43
43
<firewall name =" main" >
44
44
<anonymous />
45
- <form-login login-path =" / login" check-path =" / login" />
45
+ <form-login login-path =" login" check-path =" login" />
46
46
</firewall >
47
47
</config >
48
48
</srv : container >
@@ -82,8 +82,8 @@ bundle::
82
82
{
83
83
}
84
84
85
- Next, create a route for the path you configured earlier
86
- under your `` form_login `` configuration (``/ login ``):
85
+ Next, configure the route that you earlier used under your `` form_login ``
86
+ configuration (``login ``):
87
87
88
88
.. configuration-block ::
89
89
@@ -247,7 +247,7 @@ Finally, create the template:
247
247
248
248
The form can look like anything, but has a few requirements:
249
249
250
- * The form must POST to `` / login ``, since that's what you configured
250
+ * The form must POST to the `` login `` route , since that's what you configured
251
251
under the ``form_login `` key in ``security.yml ``.
252
252
253
253
* The username must have the name ``_username `` and the password must have
Original file line number Diff line number Diff line change @@ -129,10 +129,10 @@ Each part will be explained in the next section.
129
129
provider : some_key_from_above
130
130
form_login :
131
131
# submit the login form here
132
- check_path : login
132
+ check_path : /login_check
133
133
134
134
# the user is redirected here when they need to log in
135
- login_path : login
135
+ login_path : / login
136
136
137
137
# if true, forward the user to the login form instead of redirecting
138
138
use_forward : false
@@ -252,7 +252,7 @@ The Login Form and Process
252
252
login_path
253
253
..........
254
254
255
- **type **: ``string `` **default **: ``login ``
255
+ **type **: ``string `` **default **: ``/ login ``
256
256
257
257
This is the route or path that the user will be redirected to (unless ``use_forward ``
258
258
is set to ``true ``) when they try to access a protected resource but isn't
@@ -265,7 +265,7 @@ you may create a redirect loop. For details, see
265
265
check_path
266
266
..........
267
267
268
- **type **: ``string `` **default **: ``login ``
268
+ **type **: ``string `` **default **: ``/login_check ``
269
269
270
270
This is the route or path that your login form must submit to. The firewall
271
271
will intercept any requests (``POST `` requests only, by default) to this
You can’t perform that action at this time.
0 commit comments