Reset Drupal Passwords in Easier Way

Clone index.php file and create new file with following coding. I have highlighted the changes by adding comments. Replace the password you want to set and try to open in the url.
You will get hashed version of your password. Now, I assume you have database access if you’re making such changes on file level. Go to PHPMyAdmin or If you’re daring on console and replace the pass under user_field_data table.

Further, There could be changes, you’re still getting Invalid Logins.
Clear out the following tables:

  • flood
  • cache_entity

Don’t worry, We are not deleting something important in Drupal. Flood table basically block the IP which tried many failed attempts on login screen and cache_entity is related to cached version of Drupal copy, you might be getting.

Don’t forget to write us down if still issue persist. You can write to us or comment. We are in Drupal Development too. We can develop and design sites based on the client’s requirements. Our expert will get in touch with you and assist you on your issue.

Previous Post
Monitoring Apache access logs and capture suspicious requests

No results found.

Leave a Reply

Your email address will not be published.

Fill out this field
Fill out this field
Please enter a valid email address.

Menu