我正在将我的应用程序移动到symfony,我无法登录工作。我总是收到“错误凭据”错误。
我的数据库中使用此密码进行哈希处理的密码:password_hash($password,PASSWORD_BCRYPT,array('cost'=>10));
。
我认为我在security.yml中正确设置了编码器:
encoders:
UserBundle\Entity\User:
algorithm: bcrypt
cost: 10
iterations: 1
encode_as_base64: false
知道如何解决这个问题吗?谢谢!!
答案 0 :(得分:1)
i finally found the answer to my question. I have set the iterations to zero and it worked. Don't really understand why but it worked :) Thanks for your help !