Re: Preventing error message on initial forceLogin

Dan Rossi <liveuser-zu2dZaOKXTSc5qR/[email protected]>
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
On 27/06/2005, at 4:57 PM, Lukas Smith wrote:

> Dan Rossi wrote:
>> On 27/06/2005, at 3:47 PM, Lukas Smith wrote:
>>> Dan Rossi wrote:
>>>
>>>> Hi there, I have issues when loading the login page without 
>>>> actually being forceLogin. The error message displays
>>>> Cannot authenticate, username/password is probably wrong
>>>> even though i havent entered the restricted area which returns to 
>>>> the login page, any ideas how to prevent this ?
>>>
>>>
>>> that status is fired if you call the login() method with non empty, 
>>> yet not matching user credentials.
>>>
>> I'm using init ??
>
> init calls login() and passes the handle along.
> the login method checks if the handle is empty, if yes it checks if 
> there is a handle in the cookie, if so it contiunues .. else it 
> returns with out error ..
>
> if a handle was passed (or read from the cookie) it then sets the 
> error status you saw and tries to authenticate the handle. if that 
> success the status is overwritten again. if not the error status 
> stays.
>

Ok thats untrue, i removed cookies has done the same, its on initial 
trying to access a restricted page which i am trying to send to the 
login form.
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.