By evolverine on
Hi,
this may sound silly, but I have accidentally removed the user login block (I didn't know it would do so much harm :) ) and have logged out from my drupal administration page, to see how a random user would see the site. Now how can I log in again to continue working on the site?...
Thanks,
Mihai
Comments
/user
Just put /user on the end of your URL (ex. www.yoursite.com/user)
Regards,
Peter
I believe you should
I believe you should add
/?q=user not /user
to your site domain if you have a standard instalation.
Michaël
Brilliant
Thank you mboudey! This helped me as I forgot to add the user login block back to the region, later I logged out and couldn't get log into the admin area.
thanks!
Thanks guys, that fixed it. Though it's not very intuitive, is it? Because there isn't a "user" directory in drupal, nor is there a "user.php" file. Where should I have read about it? Is there like a beginner's manual?
Thanks again,
Mihai
Since drupal is PHP and database backed...
All requests to your website go through Index.php. Therefore the paths you see can have many different meanings. With a standard install you often see the /?q=user. If you have clean URLs turned on then apache mod_rewrite kicks in and you just have /user, but to the drupal code it looks the same.
Basically the way the path is "parsed" to construct your page is part of the dispatch system of Drupal and is core to the way Drupal works. The Pro Drupal Developers handbook available for purchase explains how all this works really well. I couldn't find anything in the Drupal handbooks that explained it as well.
As far as not being intuitive. Well, there has to be a way to remove the user login block for sites that don't want to support users wouldn't you say? And if you were designing a site that didn't support users you wouldn't want a login block or menu to show up somewhere once you had removed it right? And since you did remove it, well of course it was gone!
Regards,
Peter
Troubleshooting FAQ
The documentation on Drupal.org definitely needs work to be more user friendly for beginners. However I did find this after a quick look...
http://drupal.org/node/111628 which is in the Troubleshooting FAQ section of the handbook.
Regards,
Peter