Date: 09/12/00
- Next message: Heiko Dittrich: "[phplib] $auth->logout() not working as expected?"
- Previous message: chester <email protected>: "[phplib] too many MySQL connections"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I have a page with default authentication. The code is:
<?php
// using Default Authentication
page_open(array("sess" => "Example_Session", "auth" =>
"Example_Default_Auth"));
$auth->login_if($again);
if ($auth->auth["uid"] == "nobody"):
?>
<A HREF="<?php $sess->purl("$PHP_SELF?again=yes") ?>">Relogin</A>
to this page.
<?php endif ?>
(phplib-7.2c/doc/documentation-3.html)
If a user "nobody" clicked into "Relogin", a login box is displayed. But
the program always return "Invalid password" (although that's a valid
password: user=kris, password=test). I don't know what's wrong. If there
is'nt "$auth->login_if($again)" , program will work (with input: user=kris,
password=test). Following is class Example_Default_Auth (default when
installed):
class Example_Default_Auth extends Example_Auth {
var $classname = "Example_Default_Auth";
var $nobody = true;
}
Can you help me?
Regards,
Thai
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Heiko Dittrich: "[phplib] $auth->logout() not working as expected?"
- Previous message: chester <email protected>: "[phplib] too many MySQL connections"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

