Re: PEAR::Auth

From: Date: Tue, 18 Jun 2002 12:27:40 +0000
Subject: Re: PEAR::Auth
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-1705@lists.php.net to get a copy of this message
Hi, You need to pass Auth an array of parameters eg: $dsn = "mysql://user:somepassword@localhost/somedb"; $auth_params = array("dsn"=>$dsn,"table"=>"users","usernamecol"=>"username","passwordcol"=>"password"); $myauth = new Auth("DB", $auth_params, "loginFunction",false); Mike. On Tue, 18 Jun 2002, Sean Chambers wrote: > I am thinking about using this class for some of my auth sites. I have > some questions though, > > I understand checking $a->getAuth() and everything, But how does > PEAR::Auth know what table to check the username > And password from? I didn't see in the documentation where you set the > table name. > > Sean Chambers > Web Developer > Vann Data Technology Centre > Daytona Beach, FL > (386) 238-1200 ext. 1205 > chamberss@vanndata.com > >

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