Re: dublicate handles in LiveUser

From: Date: Sun, 23 Nov 2003 23:06:31 +0000
Subject: Re: dublicate handles in LiveUser
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9093@lists.php.net to get a copy of this message
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

« previous php.pear.general (#9093) next »