Skip to content

Commit

Permalink
Merge branch '2.8' into 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Dec 9, 2015
2 parents 8d21262 + 00dc17c commit dcde292
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 @@ -511,8 +511,13 @@ else, you'll want to encode their passwords. The best algorithm to use is
));
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 @@ -1409,7 +1414,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 dcde292

Please sign in to comment.