Home ›
Easiest way to get into a development Drupal site you are locked out ofEasiest way to get into a development Drupal site you are locked out of
Submitted by dhakimzadeh on October 7, 2009 - 10:35am
Edit index.php and right below the first real code line, the bootstrap call, add:
<?php
global $user;
$user->uid = 1;
?>
Refresh any page once, and you are the superuser.
Do not ever do this on a production site as anyone who happens along is made user number one whether they want to be or not.
searched words: user login uid 1 one locked out get in log in forgotten password e-mail not emailing account information cannot sign in help I'm an administrator how did i do this
More like this
- The easiest way to do CCK teasers!
- Fastest way to get just one result from a database table in Drupal
- Get the complete base URL for a Drupal site
- Drupal 6 wigs out if you delete or move (as in rename to settings.php) its default.settings.php
- How to redirect after a Drupal form by the way you link to the form

