Re: Preventing error message on initial forceLogin
Lukas Smith <[email protected]>
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Organization | BackendMedia GbR |
| Message-ID | <[email protected]> |
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. 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