Skip to content

Instantly share code, notes, and snippets.

@captovate
Created October 4, 2013 08:14
Show Gist options
  • Save captovate/6822602 to your computer and use it in GitHub Desktop.
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
<?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