Re: [PHP-PEAR] RFC on merge of PHPLib and Pear
[email protected] (Matthias Mohr) Wed, 7 Mar 2001 17:49:57 +0100 (MET)
| Newsgroups | php.pear |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 7 Mar 2001, Chuck Hagenbuch wrote: > Quoting Björn Schotte <[email protected]>: > > > But Auth is not a specific solution, Auth is very generic. And, > > another reason for placing these things in PEAR/ and not in > > PHPLib/ is that auth is such a basic thing for so many applications > > that it should be "PEAR Auth". > > Can you use phplib's auth to authenticate someone by ip address? What about by > username and password but only if they're coming from a certain ip address? The > list goes on and on... it's not generic. from auth.inc: ## ## Authentication dummies. Must be overridden by user. [...] function auth_validatelogin() { ; } you have to subclass the Auth-class from phplib to use it. You can do in your auth_validatelogin()-method what you want, it just has to (or should?) return false or a valid uid. What can be more generic? messju > I'm building such a system, btw, but I don't want to force it on anyone. > > -chuck > > -- > Charles Hagenbuch, <[email protected]> > "Live, from Washington, where the doctors were telling us what they did, and > did not, do with Vice President Cheney." -Dan Rather