password_verify doesn't verify hash

前端 未结 2 640
孤城傲影
孤城傲影 2021-01-02 05:03

I hash my inserted passwords via password_hash. I verify them by using password_verify.

However when I insert a hashed password in my database and I try to verify it

2条回答
  •  温柔的废话
    2021-01-02 05:58

    You rehashed the password - just pass the plaintext password and your hash (from db) to password_verify and it works.

提交回复
热议问题