Thursday, 2 June 2016

How to fix a Drupal 7 a $hashed_pass not matching user_pass_rehash issue

With some code that does the check for the one-time log in link I had an issue with the $hashed_pass not matching the user_pass_rehash that I was running for the check . Here's how solved this issue. 1. Breakpointed all calls to user_pass_rehash 2. I then noticed that the $user->login was being entered in as zero on the first call. 3. Fixed this issue.

No comments: