[prev in list] [next in list] [prev in thread] [next in thread]
List: pear-general
Subject: RE: [PEAR] Using Auth_HTTP
From: "Dennis Sterzenbach" <dennis () darknoise ! homeip ! net>
Date: 2003-09-30 14:39:25
[Download RAW message or body]
Complement to my post:
The Header() line doesn't change anything on the problem, so it's
staying the same when deleting / commenting it.
Either I tryed using Auth instead of Auth_HTTP and the following
code worked immediately for me:
require_once 'Auth/Auth.php';
$auth =& new Auth("DB", $dsn);
$auth->storage->options['table'] = "logins";
$auth->storage->options['usernamecol'] = "email";
$auth->storage->options['passwordcol'] = "pass";
$auth->storage->options['cryptType'] = "md5";
$auth->assignData();
$auth->start();
function loggedin() {
echo "logged in successfully";
}
if (!$auth->getAuth()) {
exit(MY_LOGIN_ERROR);
}
Thanks for any help!
--
Dennis
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic