441cdq
Last Updated: February 25, 2016
·
3.135K
· andreia
Mesr

FOSUserBundle: Using BCrypt Password Encoder

In security.yml file:

security:
    encoders:
        FOS\UserBundle\Model\UserInterface:
            algorithm: bcrypt
            cost: 15

Reference:
http://symfony.com/doc/2.3/reference/configuration/security.html#reference-security-bcrypt

  • The BCrypt password encoder was introduced in Symfony 2.2.
Say Thanks
Respond