Community & Support

The art of logging in when the login box is disabled

So I disabled the login box and wonder how to log in now! I hope there is a way =)

Comments

login page

http://yoursite.com/[?q=]user

Can't seem to get that workin

Can't seem to get that working, with or without the brackets. I'm locked out here =(

brackets mean

optional. ie.
  http://yoursite.com/?q=user (when clean_urls are disabled)
or
  http://yoursite.com/user (when clean_urls are enabled)

you knew that, didn't you?

when i do this on my local box, i get a nice login page. this of course only works for 4.2rc.

So if I have a version after

So if I have a version after 4.2rc I'm screwed?

:(......no good.....

it should work on later

it should work on later versions also. I can confirm form 4.6

The full complete should

The full complete should be
sample.com/index.php?q=user

-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

Fun with PHP

I am using a PHP Template theme, this would work differently in another theme, but I add this code snippet to the bottom of the page.tpl.php file, below the call to print the footer (also shown here). It adds a very small login/register or logout link to whatever footer you define in admin/settings:

<?php


print $footer_message;

global
$user;

if (
$user->uid) {
   print
" You are logged in as ". $user->name;
   print
" | <a href='logout'>logout</a>";
}
elseif (!
$user->uid) {
   print
" <a href='user/login'>log in</a> or <a href='user/register'>register</a>"; }
?>

Amanda Bee

Also works in 4.52

Just checked and it works find in 4.52

What I do when I disable the

What I do when I disable the login box is just bookmark mysite.com/user and login that way.

-----------------
Josh Stevens
Nautilus7 Design | www.nautilus7.com

-----------------
Josh Stevens
Cartography & Geovisualation

Just installed Drupal 4.6.0,

Just installed Drupal 4.6.0, and I also disable the login block.
/ or ?q= do not work at all.
Is there a way to log in again without having te login block?

LukasK

full path

/index.php?q=user

-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

Sorry, but none of these

Sorry, but none of these ways work for me...

login path is

?q=user/login

go with us - learn php

theme maybe

If he has to go to that level, it makes me wonder if he has a custom theme and has taken out the (in phptemplate) $tabs variable.

-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

No, nothing works. I have no

No, nothing works. I have no themes installed other than the default ones. I just installed Drupal. It's on personalsites.org.

Do you have access to your database?

If so, please report back. For there are some hacks available to get into drupal if you can access the raw database (wo, always remember that giving people access to your database administration is dangerous)

Also, please give us details: not what server or platform you run, but things like; clean urls enabled? cache on or off? extra modules installed? version of drupal you run? etcetc
---
if you dont like the choices being made for you, you should start making your own.
---
[Bèr Kessels | Drupal services www.webschuur.com]

Hi Bèr,

Hi Bèr,

I did a clean install of version of 4.6.0 using Fantastico.
Because I am just starting to build my website, there is nothing lost. I can simply remove and re-install now. But if this problem continues I might be forced to use some other CMS. (I'd rather use Drupal because of some features I like).
The first time I had clean urls enabled, and I only added the Dutch translation. No extra modules yet. I did not change anything in the caching I think. Do you think that caching can cause problems in this area?
The second time I only did a clean install without anything else, so no clean url's enabled, etc.
Both times: the same problems.
I must add: I installed both times with "vpw" as admin user name (I am using domainname vpwnet.com). Then "base-url/vpw" or "base-url/?q=vpw" returned the error message "page not found" whereas "base-url/admin" or "base-url/?q=admin" returned the error message "no access to this page" (or something similar).

Lukas

Fantastico

Fantastico might well be the problem. Perhaps if you did a clean install from a download off this site and from the install.txt it might work.

-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

Is it drupal?

I can't see anything that looks like Drupal on your site.
I've found nothing than plain html pages and it seems that no Drupal path works.

go with us - learn php

I removed Drupal

This is because I removed Drupal, after I could not log in anymore (remember it was just a clean first time install).
I am also having some Fantastico installing errors. I am talking to my hoster's support team about that now.

LukasK

type "user"

You should type the word "user" -- www.mysite.com/user

NOT

the name of the user (in your case, vpm) -- thus not www.mysite.com/vpm -- I think this latter, typing the username itself, will only work if you haven't logged out.

Embarrassed...

Thanks,
This is really embarrassing, this is probably because in my work, whenever I see "user" I have to interpret that as an actual user name.

I will try that immediately.

LukasK

Your welcome.

Your welcome.

You shouldn't be embarrassed. One thing I learned this past 3 mos or so from this community is that there are no silly questions and problems. Everyone is willing and eager to help. :)

Me too

Don't be embarassed at all. I'm new to Drupal and I had to drop the database twice because I did the exact same thing ! It wasn't until this thread that I figured it out.

Warren
http://www.warrenonline.ca

nobody click here