FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Minor Admin CP suggestion
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Minor Admin CP suggestion [message #15546 is a reply to message #15517] Thu, 18 December 2003 15:03 Go to previous messageGo to previous message
Gribnif is currently offline  Gribnif   United States
Messages: 82
Registered: December 2003
Karma:
Member
This is the result I just got when I tried it again:

Add User
Error Has Occured
Register a new forum user.
Login: Login (lkjglj) is already in use.

Where lkjglj is just a random set of characters I banged on the keyboard, and only the email address was the same as another account.

I just pulled the code out of admadduser.php and substituted what seemed like good values:

INSERT INTO fud_users
 (login, alias, passwd, name, email, time_zone, join_date, theme, users_opt, last_read) VALUES (
 'lkdjfgl', 'kjhertk', 'junk',
 'ldfglnkre', '[duplicate email address]', 'timezone',
 'stamp', 'default', 0, 'stamp');

This produced the MySQL error:

ERROR 1062: Duplicate entry '[duplicate email address]' for key 2

Note that it says key 2. According to the code in admadduser, this gives the (wrong) error message I'm seeing. If I instead change the SQL code so that the "login" field is the duplicate, MySQL says this is key 3.

A "SHOW CREATE TABLE fud_users" lists the keys in this order:
  PRIMARY KEY  (`id`),
  UNIQUE KEY `fud_users_i_e` (`email`),
  UNIQUE KEY `fud_users_i_l` (`login`),
  UNIQUE KEY `fud_users_i_a` (`alias`),
  KEY `fud_users_i_rk` (`reset_key`),
  KEY `fud_users_i_lv` (`last_visit`),
  KEY `fud_users_i_ck` (`conf_key`),
  KEY `fud_users_i_ri` (`referer_id`),
  KEY `fud_users_i_uo` (`users_opt`)
) TYPE=MyISAM |
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: index.php problem
Next Topic: Case-sensitivity problem
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Sep 19 22:32:11 GMT 2024

Total time taken to generate the page: 0.03148 seconds