Skip to content

Commit eaf16e5

Browse files
committed
[#2146] A few more tweaks for security paths => routes
1 parent c9bd8f6 commit eaf16e5

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

book/security.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -409,12 +409,11 @@ submission (i.e. ``/login_check``):
409409
to this URL.
410410

411411
.. versionadded:: 2.1
412-
As of Symfony 2.1, you *must* have routes configured for your ``login_path``
413-
(e.g. ``/login``), ``check_path`` (e.g. ``/login_check``) and ``logout``
414-
(e.g. ``/logout`` - see `Logging Out`_) URLs.
412+
As of Symfony 2.1, you *must* have routes configured for your ``login_path``,
413+
``check_path`` ``logout`` keys. These keys can be route names (as shown
414+
in this example) or URLs that have routes configured for them.
415415

416-
Notice that the name of the ``login`` route isn't important. What's important
417-
is that the URL of the route (``/login``) matches the ``login_path`` config
416+
Notice that the name of the ``login`` route matches the``login_path`` config
418417
value, as that's where the security system will redirect users that need
419418
to login.
420419

@@ -1667,7 +1666,7 @@ the firewall can handle this automatically for you when you activate the
16671666
'firewalls' => array(
16681667
'secured_area' => array(
16691668
// ...
1670-
'logout' => array('path' => 'logout', 'target' => '/'),
1669+
'logout' => array('path' => '/logout', 'target' => '/'),
16711670
),
16721671
),
16731672
// ...

0 commit comments

Comments
 (0)