I was trying out the username blocking feature, and since I don't want anyone to register an account with the word 'admin' in it (to avoid posing), I blocked the word admin. Then I logged out. But when I logged in using my username and password it says 'admin is a reserved username'. Now I can't even log in to my admin account! Is there a way to fix this?

Comments

behindthepage’s picture

Edit your username in the user table in the database. Change it to something that doesn't have admin in it then you will be able to log in using your new username and your old password. Don't change the username! It is encrypted.

gpdinoz
"Everything should be made as simple as possible, but not simpler." - Albert Einstein

Regards
Geoff

Fanh’s picture

It works! Thank you so much for the help ^^

Infinitee’s picture

I sucessfully changed my login name though phpMyAdmin but, I still get "The name xxx is a reserved username." when trying to login.

I was trying to set username blocking feature so duplicate usernames and email address' could not be used. I set both username and email to Block and %.

If I ever do get back logged in.... What are the propper settings to acheive this?

Thanks in advnance,

Ralph

PS "Don't change the username! It is encrypted. I think this is supposed to be "Don't change the PASSWORD! It is encrypted."

behindthepage’s picture

Duplicate usernames and emails are blocked as standard.

gpdinoz
"Everything should be made as simple as possible, but not simpler." - Albert Einstein

Regards
Geoff

superjacent’s picture

How about something like this:
%_admin% or
%admin_%

The above will at least let you retain 'admin' for your purposes.

___________________________

Steven Taylor
Melbourne, Australia.
http://superjacent.net/cms

nifilim’s picture

I choose to change the username not on the block list and the password. Sometimes Drupal don't email the new password option so I created a new one using MD5 encrypter and change the data through PHPmyadmin and successfully login. I deleted the username that I use before at the blocklist created a new account and set permission to admin, log-out and login old username deleted the admin account and I got my website back.

wolfman_luke’s picture

I ran into the same issue with my recent installation. I wanted to set it up as a test bed, but not allow any users to create accounts. I set username deny to % and got caught unable to login.

After reading this note, I bounced into the user/user.module and managed to uncomment 4 lines of code to deactivate the checking. Once in I returned the code to the original state.

Once in, I found that deny username % AND THEN allow username admin would allow one to still access the system.