Message: "The name belongs to a registered user" and securesite not working

Summit - May 25, 2009 - 13:08
Project:Drupal
Version:7.x-dev
Component:comment.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs work
Description

Hi,
I am trying to get 2.3 to work, but I am stuck on "The name belongs to a registered user.".
I set "access secured pages" permission for securesite also to anonymous users.
How to get this message away and securesite working?
I got a blank field for guest user, and am not able to type something in it, but it has a red border around it.

Thanks for going into this.
Greetings, Martijn

#1

Darren Oh - May 25, 2009 - 13:18
Status:active» closed

This means that one of your users has created an account with the same name you are using for the guest user. You must change either the user name or the guest name.

#2

Summit - May 25, 2009 - 14:04

Hi,
You where right! Somehow I got a user with Anonymous user as name in my useradmin. I deleted this user, and now it works.
Thanks for your quick reply!

greetings,
Martijn

#3

podarok - December 22, 2009 - 19:43
Priority:normal» critical
Status:closed» needs work

this is real trouble on large loaded sites

cause

if Your site was for anonymous users but during its growing process Your users became registered with the same names - trouble is global
F.E. content manager wants to edit old message - but always got this error. Changing names - is not good - sometimes it can be non-legal (copyright)

If this bug (Yes, this is bug! cause superadmin may edit everything!) woudn`t be fixed try this small fix in comment.module

        $taken = db_result(db_query("SELECT COUNT(uid) FROM {users} WHERE LOWER(name) = '%s'", $edit['name']));

/*
   if ($taken != 0) {
          form_set_error('name', t('The name you used belongs to a registered user.'));
        }
*/
      }

But remember!!!! - with commenting this code users can change their usernames in comments into Registered usernames (possible)

ps. sorry for my english

#4

podarok - December 22, 2009 - 19:38
Project:Secure Site» Drupal
Version:6.x-2.3» 6.x-dev
Component:Code» comment.module

moving this to core comment.module queue

we need to handle such situation in right way

#5

podarok - December 22, 2009 - 19:46
Version:6.x-dev» 7.x-dev
Priority:critical» normal

just checked this in 7.x-dev - all the same

 
 

Drupal is a registered trademark of Dries Buytaert.