Auth_HTTP, it's not authenticating...

From: Date: Mon, 28 Jul 2003 19:03:13 +0000
Subject: Auth_HTTP, it's not authenticating...
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6870@lists.php.net to get a copy of this message
I am trying to use Auth_HTTP to authenticate a user before accessing content. I have a table in the db called scl_users with uid (varchar(32)) and password (varchar(32)). I use the following code: <?php //print md5("password"); //require_once "DB.php"; require_once "Auth_HTTP/Auth_HTTP.php"; $dsn = "mysql://....";
$options = array('table'         => 'scl_users',
'usernamecol' => 'uid', 'passwordcol' => 'pword', // 'cryptType' => 'md5',
				 'dns'           => $dsn,);
$auth = new Auth_HTTP("DB",$options,true); $auth->start(); if ($auth->getAuth()) { print "Hello World"; } ?> It prompts me and prompt me, and prompts me more... Am I doing something wrong? I printed my password out using md5 and dumped that in the db with my username. I have no idea how to retriece errors or anything. If anyone could help me it'd be greatly appreciated. Thanks. - Stan

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