Re: Liveuser status

Lukas Kahwe Smith <[email protected]> Tue, 30 Aug 2005 10:42:40 +0200
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
Michi wrote:
> Hello,
> 
> I just started to fix my app for liveuser-0.16.5.
> In my login script I used to show to users messages using
> liveuser->getStatus();

> I found out, that I get LIVEUSER_STATUS_AUTHFAILED by default, ie.
> only when initing liveuser (not sending any auth data).

> I don't know how to distinguish the case that auth failed and the
> default case.
> 
> When using older LiveUser this works. Do you have an idea how to fix
> this?

We did do a few changes in this regard.
I guess our assumption is that you always and to login and that if we 
were unable to login we will set the auth failed. This gets especially 
fuzzy if you enable the remember me cookie feature. Either way an empty 
handle is by no means a clear indication that you did not mean to login.

I am open to suggestions though. Maybe we need to add another status 
code for empty handles/passwords?

The relevant code is in LiveUser::login().

regards,
Lukas