logo       

Re: dublicate handles in LiveUser: msg#00391

php.pear.general

Subject: Re: dublicate handles in LiveUser

Sonny wrote:
Hello,

id it true that LU doesn't take care about if an handle is already exist?
I have tested it and had after them three times user "tester" but with
different auth_user_id.

mysql> select * from liveuser_users where handle="tester";
+--------------+--------+----------------------------------+-----------+---------------+----------------+-----------+
| auth_user_id | handle | passwd | lastlogin |
owner_user_id | owner_group_id | is_active |
+--------------+--------+----------------------------------+-----------+---------------+----------------+-----------+
| 2 | tester | 47c5ddb680e4397d7e8a099438819831 | NULL |
NULL | NULL | Y |
| 3 | tester | 1b4da9076839e54e14cf239d63de03f4 | NULL |
NULL | NULL | Y |
+--------------+--------+----------------------------------+-----------+---------------+----------------+-----------+

From my config array I have set "allowDuplicateHandles = 0".

Is this an normal behavior or an bug or somewhere my fault?

LiveUser makes this an option ("allowDuplicateHandles"), as I once had a customer who demanded this to be possible. Thus, the SQL script delivered with the package allows this as well.

If you're sure you'll never want to use this option, just put a UNIQUE index on the "handle" field.

CU
Markus

--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise