Auth_HTTP and "db_fields" option

From: Date: Sat, 21 Aug 2004 01:02:45 +0000
Subject: Auth_HTTP and "db_fields" option
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14206@lists.php.net to get a copy of this message
Does Auth_HTTP support returning additional fields from the database? If so, my code isn't working. I'm using Auth_HTTP 2.0 and Auth 1.2.3 with the DB container. using the following options array $AuthOptions = array( 'dsn'=>'mysql://' . $dbinfo['user'] . ':' . $dbinfo['password'] . '@' . $dbinfo['host'] . '/' . $dbinfo['database'],
'table'=>'owners',                            // your table name
'usernamecol'=>'email',            // the table username column
'db_fields' => '*' } I am logging in successfully but I get nothing returned for additional data when using Auth_HTTP. Change the code to use just Auth and I login just fine AND I get additional data as expected. adding some test code (meaning "die('foo');") to the "fetchData" function in Auth/Containers/DB, it seems as though that function is never called when using Auth_HTTP. Thanx in advance for any help. BTW - the example code on <http://pear.php.net/manual/en/package.authentication.auth-http.auth-http.example2.php> incorrectly names the "db_fields" option "dbFields". FYI -- matte - matte@arubanetworks.com webmonkey / arubanetworks.com / airheads04.com / wi-fi-it.com

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