Skip to content

Commit

Permalink
Merge branch '2.7' into 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Dec 9, 2015
2 parents 78d11d8 + 4ee6cb2 commit 00dc17c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions book/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,13 @@ else, you'll want to encode their passwords. The best algorithm to use is
.. include:: /cookbook/security/_ircmaxwell_password-compat.rst.inc

Of course, your users' passwords now need to be encoded with this exact algorithm.
For hardcoded users, you can use an `online tool`_, which will give you something
like this:
For hardcoded users, since 2.7 you can use the built-in command :

.. code-block:: bash
$ php app/console security:encode-password
It will give you something like this:

.. configuration-block::

Expand Down Expand Up @@ -1411,7 +1416,6 @@ Learn More from the Cookbook
* :doc:`/cookbook/security/remember_me`
* :doc:`/cookbook/security/multiple_user_providers`

.. _`online tool`: https://www.dailycred.com/blog/12/bcrypt-calculator
.. _`frameworkextrabundle documentation`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/index.html
.. _`security advisories database`: https://github.com/FriendsOfPHP/security-advisories
.. _`HWIOAuthBundle`: https://github.com/hwi/HWIOAuthBundle
Expand Down

0 comments on commit 00dc17c

Please sign in to comment.