Solved forgot password is not working with drupal

If your website created in drupal cms the you click on forgot password link. you got the email from your website to reset the password.

When I used drupal functionality I got weird issue with durpal cms. I got the email from website but when I tried to login with url. We solved forgot password is not working with drupal issue.

Solved forgot password is not working with drupal

the email notification doesn’t work for me at all. I did google around for this issue but did not get any solution for this issue.

Then I tired to solve this issue my own and I found the hack to solve this issue.

Go to your drupal installation and open “user.pages.inc” file from following location

Solved forgot password is not working with drupal

Solved forgot password is not working with drupal

File : modules/user/user.pages.inc

Find function called¬† “user_pass_reset()” in file. You need to modify that function.

Put the following line :
$action = ‘login’;
before if ($action == ‘login’)¬† line. This code will solve the forgot password and authentication with url issue.

If you want more drupal tutorials than visit here

Add a Comment

Your email address will not be published. Required fields are marked *