PHP Password verify always returns false

前端 未结 2 1884
滥情空心
滥情空心 2021-01-18 12:09

I\'m using PHP\'s password hashing API to hash and verify my passwords on a site I\'m building, however whenever I try and verify my password it always returns false.

2条回答
  •  耶瑟儿~
    2021-01-18 12:33

    The given hash string example has 50 characters instead of 60. Double-Check the database - CHAR(60) - and var_dump($hash).

提交回复
热议问题