- Drupal Developer helps you to learn Drupal by Live code examples!
- Learn to develop custom Drupal modules and themes for Drupal 5, Drupal 6, Drupal 7 and Drupal 8
- Post your Drupal questions and get solutions.
- It is always free to join and post!
Drupal: Reset admin password
This CodeLet will create hash for your admin password. You can provide the string for password and the CodeLet will generate the hash. You can then copy this hash and add in password field in the users table. The code has to be put in index.php of your Drupal installation and the order of the code is important.
require DRUPAL_ROOT . '/includes/bootstrap.inc';
If you failed to login after certain tries, you will require to flush the 'flood' table
By DrupalD on Fri, 03/05/2013 - 9:31am