Re: [phplib] how to _not_ force login page? From: warn (warn <email protected>)
Date: 10/06/00

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.
Cheers,
warn

Theodore Hope wrote:

> 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>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>