Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Assume you already have some useraccounts. One of them might be "admin". If you then go to administration -> user management -> access rules -> username rules and add "admin" as a "deny" rule, you will not be able to login as admin after you logged out, because "admin" is a restricted username then.
So check all existing usernames, before you apply an "deny" access rule!
I just did this, my login name is "Snellgrove" and I denied "Snellgro%" so people couldn't copy my name for similiar stuff... when I come to login, I get a nice "The name snellgrove has been denied access"
@£$£"!!!! I only just got finished making my site, was doing the final tweaks! really dont want to start it again, how do I fix this?
I guess I have to edit something in the database?
:edit:
sorry for the post, - probably dragged up a very old topic
I've managed to fix it !!
if you use PHPMyAdmin, open your database for Drupal, and find the table called "access"
use the "browse" tool in PHPMyAdmin and there is a row for each rule you have created for your site, simply remove the line thats a problem and things work again :D
I do think this bug needs fixing tho ;) it should check during registration, not login?
altho this becomes difficult for "drupal" sites, with distributed authentication I guess... ?
Comments
Solution
The "Problem" occurs under this circumstances:
Assume you already have some useraccounts. One of them might be "admin". If you then go to administration -> user management -> access rules -> username rules and add "admin" as a "deny" rule, you will not be able to login as admin after you logged out, because "admin" is a restricted username then.
So check all existing usernames, before you apply an "deny" access rule!
Thanks for your attention,
Jones
uhh... oops
I just did this, my login name is "Snellgrove" and I denied "Snellgro%" so people couldn't copy my name for similiar stuff... when I come to login, I get a nice "The name snellgrove has been denied access"
@£$£"!!!! I only just got finished making my site, was doing the final tweaks! really dont want to start it again, how do I fix this?
I guess I have to edit something in the database?
:edit:
sorry for the post, - probably dragged up a very old topic
I've managed to fix it !!
if you use PHPMyAdmin, open your database for Drupal, and find the table called "access"
use the "browse" tool in PHPMyAdmin and there is a row for each rule you have created for your site, simply remove the line thats a problem and things work again :D
I do think this bug needs fixing tho ;) it should check during registration, not login?
altho this becomes difficult for "drupal" sites, with distributed authentication I guess... ?