Created
October 4, 2013 08:14
-
-
Save captovate/6822602 to your computer and use it in GitHub Desktop.
To reset the admin password via database:
- add this snippet to index.php after drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
- go to page, copy password
- revert changes in index.php
- go to database and paste password in user table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'includes/password.inc'; | |
echo user_hash_password('mynewpassword'); die(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment