Skip to content

Commit 4e880c1

Browse files
committed
minor #4755 fix minor typo (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- fix minor typo Commits ------- 5dca2e1 fix minor typo
2 parents 463c30b + 5dca2e1 commit 4e880c1

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

book/security.rst

+9-8
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ user to be logged in to access this URL:
204204
# ...
205205
firewalls:
206206
# ...
207-
207+
208208
access_control:
209209
# require ROLE_ADMIN for /admin*
210210
- { path: ^/admin, roles: ROLE_ADMIN }
@@ -427,9 +427,10 @@ If you'd like to load your users via the Doctrine ORM, that's easy! See
427427
:doc:`/cookbook/security/entity_provider` for all the details.
428428

429429
.. _book-security-encoding-user-password:
430+
.. _c-encoding-the-users-password:
430431

431-
C) Encoding the Users Password
432-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
432+
C) Encoding the User's Password
433+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
433434

434435
Whether your users are stored in ``security.yml``, in a database or somewhere
435436
else, you'll want to encode their passwords. The best algorithm to use is
@@ -668,7 +669,7 @@ URL pattern. You saw this earlier, where anything matching the regular expressio
668669
# ...
669670
firewalls:
670671
# ...
671-
672+
672673
access_control:
673674
# require ROLE_ADMIN for /admin*
674675
- { path: ^/admin, roles: ROLE_ADMIN }
@@ -834,9 +835,9 @@ in this chapter).
834835
Be careful with this in your layout or on your error pages! Because of
835836
some internal Symfony details, to avoid broken error pages in the ``prod``
836837
environment, wrap calls in these templates with a check for ``app.user``:
837-
838+
838839
.. code-block:: html+jinja
839-
840+
840841
{% if app.user and is_granted('ROLE_ADMIN') %}
841842

842843
Securing other Services
@@ -970,7 +971,7 @@ the User object, and use the ``isGranted`` method (or
970971

971972
// boo :(. Never check for the User object to see if they're logged in
972973
if ($this->getUser()) {
973-
974+
974975
}
975976

976977
Retrieving the User in a Template
@@ -989,7 +990,7 @@ key:
989990

990991
.. code-block:: html+php
991992

992-
<?php if ($view['security']->isGranted('IS_AUTHENTICATED_FULLY')): ?>
993+
<?php if ($view['security']->isGranted('IS_AUTHENTICATED_FULLY')): ?>
993994
<p>Username: <?php echo $app->getUser()->getUsername() ?></p>
994995
<?php endif; ?>
995996

0 commit comments

Comments
 (0)