Date: 04/10/01
- Next message: GWBAG <email protected>: "[phplib] Platzhalter für Zahlen bei select-Anweisung??"
- Previous message: James Johnson: "[phplib] Problems with PHPLib Default Auth"
- In reply to: James Johnson: "[phplib] Problems with PHPLib Default Auth"
- Next in thread: fabrizio.ermini <email protected>: "Re: [phplib] Problems with PHPLib Default Auth"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> I am having a problem with Default Auth. I have searched the
> list archives and noticed that others have had this problem,
> but nobody has offered a solution I can find.
>
> I set up a test page as described in the manual using Default Auth.
> When I load the page again with ?again=yes appended to the URL
> it displays the loginform, but when I submit these details I keep
> getting invalid username or password, apart from occasionally
> when it logs on correctly. I`ve set up other pages using Auth
> and Perms and these pages work fine.
>
> Anyone else had this problem? Any ideas/solutions would
> be very gratefully received.
Hi
I think this problem is caused by loginform.ihtml sending the form back to
the same page with the same query string still attached.
A quick fix would be to replace $PHP_SELF with
$sess->purl($SCRIPT_NAME."?".str_replace("login=yes","",$QUERY_STRING));
as the action for the login form.
It's been a while since I've used this so I may be off the mark here.
HTH
M@
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: GWBAG <email protected>: "[phplib] Platzhalter für Zahlen bei select-Anweisung??"
- Previous message: James Johnson: "[phplib] Problems with PHPLib Default Auth"
- In reply to: James Johnson: "[phplib] Problems with PHPLib Default Auth"
- Next in thread: fabrizio.ermini <email protected>: "Re: [phplib] Problems with PHPLib Default Auth"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

