Re: Functionality to check for duplicate usernames, confirm passwords

Lukas Smith <[email protected]>
Newsgroups gmane.comp.php.pear.liveuser
Organization BackendMedia GbR
Message-ID <[email protected]>
Dan Rossi wrote:
> 
> On 13/06/2005, at 11:40 PM, Lukas Smith wrote:
> 
>> Dan Rossi wrote:
>>
>>>
>>
>> What do you mean? Are you talking about the client here? Multiple 
>> passwords for the same user name? Same passwords for multiple users? 
>> What do you mean with confirm passwords? Are you talking about a two 
>> stage sign up where you have to activate your account through an email?
>>
>> Elaborate ...
>>
> 
> Its late here 11:45pm :)
> 
> 
> Ok I am building a signup form, where a customer will key in some 
> details, and then a username and password.
> 
> I have built an auth system in the past which i am trying to phase out 
> for liveuser. It does a strcmp for a password and then a confirm 
> password, which is just a second password field to make sure they dont 
> put in any typos. It also checks for duplicate usernames in the system 
> to prevent the unique username db error being thrown :) The user is not 
> active until an admin goes into the "Frontend" :) and confirms them, 
> when a customer has joined the admin will get an email to confirm them.
> 
> Most of this is a frontend issue, but I was wondering if there are 
> methods or functionality to do these password checks aswell as a 
> duplicate username check to obviouslly prevent the duplicate key 
> database errors :)

I dont think we will cover any of this. You will have to compare the two 
passwords yourself. You can also easily add an additional field to store 
the confirm password yourself. If you want to prevent duplicate key 
errors you can simply do a getUsers() call with the necessary filters. 
Finally there is the is_active field inside the auth containers.

regards,
Lukas Smith
[email protected]
_______________________________
   BackendMedia
   www.backendmedia.com
   [email protected]

   Linn Zwoch Smith GbR
   Pariser Str. 44
   D-10707 Berlin

   Tel +49 30 83 22 50 00
   Fax +49 30 83 22 50 07
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.