Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I assume that you mean you have disabled the display of the "user login" block -- I didn't think there was any way of disabling the login functionality,
If I'm right, you could try going directly to the URL ?q=user/login
On our site, we have intentionally removed the user login block, because its an informational site and we don't want our users to be distracted by a login form ... so the method above is how we alwys login for admin or content-creation purposes
Being the admin and turning off login was not a good idea. Now I am logged in and cannot admin. The above does not pertain to me as they were not allowing visitors to login I am the admin. So how do I turn on the admin logon now?
Comments
?q=user/login
I assume that you mean you have disabled the display of the "user login" block -- I didn't think there was any way of disabling the login functionality,
If I'm right, you could try going directly to the URL ?q=user/login
e.g. http://www.drupal.org/?q=user/login
(or, if you are using clean urls, http://www.drupal.org/user/login )
On our site, we have intentionally removed the user login block, because its an informational site and we don't want our users to be distracted by a login form ... so the method above is how we alwys login for admin or content-creation purposes
I fixed it..man that was stupid
I fixed it..man that was stupid
well I thought I fixed it
Being the admin and turning off login was not a good idea. Now I am logged in and cannot admin. The above does not pertain to me as they were not allowing visitors to login I am the admin. So how do I turn on the admin logon now?
to turn on admin block try database
i went into database and was able to manually turn on and off the block that correlates to admin and login/logout block - here's what i did:
-go into "blocks" table
-if you're using php myadmin (otherwise, i don't know what you look for), click on the browse tab at the top
-look under the column "module" for "user" that has a "delta" column of "1" - that represents you, as the admiin
-go to the "status" box for user "1", if it is "0", change back to "1"
hope that helps,
eva
Thanks that did the trick
Thanks that was it
If that does not work...
Try the "users" table.
Select the row with your name and see if "status" is "0"
If so, change "status" to "1"
I was doing a lot of tinkering and I have no idea how the status for my admin account was switched to "0" and I encountered the same problem.
Hope this helps someone else who locks him or herself out.
Turning login module back on
I turned off the login module in Durpal 5 then of course could not get back in to turn it on again. This is how I fixed it.
1. To get back into Durpal as administer use /?q=user/login which will bring up the login form.
Example: http://localhost/drupal/?q=user/login
2. Go to /?q=admin/build/block
Example: http://localhost/drupal/?q=admin/build/block
3. Find "user login" then select "configure"
4. Make selection under "Custom visibility settings"
see page: http://drupal.org/node/31768
Good Luck!