Re: PEAR::Auth undocumented methods problem

From: Date: Wed, 05 Oct 2005 18:58:31 +0000
Subject: Re: PEAR::Auth undocumented methods problem
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21252@lists.php.net to get a copy of this message
Ivan Milanez Castellanos wrote:
Hello all I'm having with a few methods that are not documented in PEAR::Auth. While reading the documentation for this package I came across the methods loginCallback, loginFailedCallback and logoutCallback, all it says in the docs is that these functions are called after successful login, unsuccessful login and successful logout respectively, but it doesn't say anything else. I've figured out you have to program the functions yourself but how do you call them? Do you even call them or are they supposed to run by themselves given the correct conditions? Does anyone have an example using these functions? TIA
Answering my own question: Turns out that the methods mentioned above run automatically once the apropriate conditions are met, but the documentation for this package neglects to mention that in order for it to work correctly one has to name the login and password fields as username and password otherwise it doesn't work because the variable names are hard coded into Auth.php Once again it prooving that: Three days trial and error can save you from three hours reading docs and that Isaac Asimov was right (see signature). Later. -- Ivan Milanez Castellanos +----------------------------+ |Artificial intelligence will| | never be able to compete | | with natural stupidity | | - Isaac Asimov - | +----------------------------+

« previous php.pear.general (#21252) next »