Re: Preventing error message on initial forceLogin
Dan Rossi <liveuser-zu2dZaOKXTSc5qR/[email protected]>
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
On 07/07/2005, at 1:25 PM, Arnaud Limbourg wrote: >> >> > Hi, > > Can you rephrase that ? I'm not sure I understand. > > Arnaud. > > _______________________________________________ > LiveUser mailing list > [email protected] > http://mailman.21st-hq.de/mailman/listinfo/liveuser > > This is prob unconventional what I have done http://www.electroteque.org/pear/LiveUser/ Login.php is what is called from the login script. This allows for the login form to post to php self . Init is called in the constructor which sets up the current class as the dispatcher events class. get is called which does callbacks to the varioues methods ;) Onlogin it does stuff and goes to the index of the protected area. Events.php is what the protected pages use, null is set for the username and pass in init, because we are not calling the login page in this dispatcher class due to the fact that my page classes use a post callback method so the login form cant post to itself here. Forcelogin here forces a logout and the postlogout method returns to the login form. Now when I go directly to the login form it comes up with an error even before the credentials are entered which my client had an issue with and got confused about. If i goto a protected area which does the logout and returns to the login form it does the same error without trying to login. So was wondering if there was ways around this ?