User login

Easiest way to get into a development Drupal site you are locked out of

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