Auth_HTTP weirdness
| From: | charles kline | Date: | Thu, 20 May 2004 19:56:39 +0000 |
| Subject: | Auth_HTTP weirdness | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-12662@lists.php.net to get a copy of this message | ||
Hi all,
I need to demo a project and Auth_HTTP is giving me big problems at the moment.
I added a user via phpMyAdmin and used MD5 on the password field.
Got it all setup and working great. So now I went to add in another user for the client to try... same way using phpMyAdmin MD5 on the password - but now this one won't authorize.
The first user/pass works, but the additional ones don't.
I tried changing the username on the first one I added and that made it stop working. Changed it back - works again.
I am totally stumped and need to show this to my client. I have it working locally, but that does not do me much good :(
$AuthOptions = array(
'DB'=> &$connection,
'usernamecol'=>"username",
'passwordcol'=>"password",
'cryptType'=>"MD5",
'dbFields'=>"*",
);
//print_r( $AuthOptions );
$a = new Auth_HTTP("DB", $AuthOptions);
$a->setRealm('Test Realm');
$a->setCancelText('Not Authorized.');
$a->start();