Date: 10/08/00
- Next message: Kartic Krishnamurthy: "Re: [phplib] Not a PHPLIB question. Just a PHP question."
- Previous message: PANKAJ GUPTA (97234): "[phplib] Not a PHPLIB question. Just a PHP question."
- In reply to: warn: "Re: [phplib] how to _not_ force login page?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> You have to put your code in local.inc, in your "auth" subclass, in the
> function "auth_loginform" to include a page with your message and
> anything else you want to add, that's it, since this function will
> automatically be called when "auth_validatelogin" fails... i suggest
> reading the docs core functionality section "How does $auth work
> internally? it explains everything.
Thanks to Warn and Philip for their help with this matter. After
re-reading the docs several times and playing around with the login
process, I think it's working as I want.
Regards, -T.H.
> > I'm using "sess", "auth", "perm" and "user" in page_open(), and
> > am trying to do the following: Have a page _not_ automatically
> > call the login screen (e.g. loginform.ihtml) but rather detect
> > that the user isn't "logged in", and print a message accordingly
> > (or redirect to a "login" page).
> >
> > I'm basing myself on the sample pages included in the phplib
> > distribution, and much of what I'm trying to do has worked,
> > except that when logout.php3 calls "$auth->logout()" (at the
> > very end) then all "auth" stuff (when called from page_open)
> > invokes loginform.ihtml automatically.
> >
> > In other words, I don't want any protected page to simply
> > show the login screen (contents of loginform.ihtml) but rather
> > do something else: display a msg saying "You're not logged in",
> > or redirect automatically to another URL.
> >
> > Any ideas? Thanks very much. -T.
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Kartic Krishnamurthy: "Re: [phplib] Not a PHPLIB question. Just a PHP question."
- Previous message: PANKAJ GUPTA (97234): "[phplib] Not a PHPLIB question. Just a PHP question."
- In reply to: warn: "Re: [phplib] how to _not_ force login page?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

