AUTH -- Getting additional data cols from auth table?
| From: | Graham Clarke | Date: | Mon, 09 Jun 2003 04:28:31 +0000 |
| Subject: | AUTH -- Getting additional data cols from auth table? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-5857@lists.php.net to get a copy of this message | ||
Hi - I'm using PEAR::Auth and need to get back an additional column during
the login.
I'm setting things up as bellow where $options holds the table name and
columns to fetch. How can I get "userid" back?
Thanks
Graham
// set options to pass to AUTH
$options = array(
'table' => 'auth',
'usernamecol' => 'username',
'passwordcol' => 'password',
'userid' => 'user_id',
'loginexpires' => 'expire_date',
'dsn' => $dsn
);
$a = new Auth("DB", $options, "myLoginFunc", true);
Graham Clarke
GrahamC@53Tech.com
www.53Tech.com
603.643.9955