Re: Re: Extending Auth rules with a fixed where clause

From: Date: Tue, 25 May 2004 12:31:37 +0000
Subject: Re: Re: Extending Auth rules with a fixed where clause
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-29624@lists.php.net to get a copy of this message
In article <40B32F63.30402@gmx.de>, Stephan Wentz wrote: > Tim Van Wassenhove wrote: > >> I think it would be more flexible to pass the whole SQL query as an >> optional parameter in the constructor. >> >> Or extend the DB Container (Thus making a new Container >> implementation) > > I like the idea of having other optional columns that are checked, in > most of the cases i used auth i had the test simple things like a user > being disabled, hasn't paid or something... > so i always have to authenticate with auth, test for other cases, if > these fail logout the user, and so on... could be handled more flexible! On Auth: Instead of passing username, password, other things it could be refactored to passing an associative array like array ( 'username' => 'johnn', 'password' => 'sillepass', 'area4' => 'allowed'); So the keys would be the columnname, and the values would be the required value. ----- It would be nice to have an authentication mechanism like pam is for unices. If i'm not mistaken, LiveUser package is becoming such a thing? -- Tim Van Wassenhove <http://home.mysth.be/~timvw/contact.php>

« previous php.pear.dev (#29624) next »