If you disabled the User login block and need to log in, you can visit the login page on:

http://example.com/?q=user

or, if clean URLs are enabled, use

http://example.com/user

Note: Use the literal word user, not your username or user id.

Comments

philipm_dppaul’s picture

A few days ago, when editing the CSS files for the new website, I decided that users shouldn't have to login to access my brother's website for his novels, so I removed the username/password form from the visible site. Today, after building nearly all of the site, I tried to get my brother (he lives in Savannah, I live in Pittsburgh) logged in so he can enter in text independently. In the process, I went to click on Administer, and hit Log out and was blocked from accessing the site I've been building.

Thank you to the folk that put this topic in a fairly easy to find place, so a Drupal novice like me could find it relatively quickly.

Phil Maye, Pittsburgh, PA

valuemex’s picture

Sorry but this isn't working. I disable the login block and now while typing mydomain.com/user or mydomain.com/admin I the fields for user and password doesnt appear neither the log in button. How can I access to my site now??? any idea ?? it is urgent for us to recover the access because we run a multisite and its our fron site the one that is blocked.

Stuff-Stuff’s picture

mydomain.com/?q=user/login
Should work :)

shesh87’s picture

I am having the same issue and I tired using mydomain.com/?q=user/login and nothing happened. Any other suggestions?

Akay-1’s picture

I logged out as 'admin' and when I logged in as one of my new users, the loginmenu disapeared. Also no adminmenu and no loginmenu to connect back to admin.
My teacher gave me this tip: www.mydomain.com/user/logout
So now I can loggin as admin.

Hope this could help

ogidan’s picture

Hey Akay,

I got myself exactly in the same position - I created another user and when I logged in as the new user my options for login/logout disappeared.
It didn't work with logout but I tried www.mydomain.com/user/login
This saved me - I was able to log in back as admin.

Thanks for your help!

viorelt’s picture

I disabled the 'Log in' block and the 'Main page content' block.
Thanks to this topic, I was able to log in back.

The issue is this: trying to place back the 'Log in' block to the left side bar, a Region error related to Main page content occured.

Late edit: seems to be related to a bug for Region error.

Anonymous’s picture

after designed a page with a panel everywhere, and disabled all pages and other blocks and regions , logged out nun of Answers above Helping .

rahmathidayat’s picture

Thank's...
its Solved May task