On Sat, 8 Jan 2000, Charles A. Eads wrote:
> Here's the senerio:
>
> I would like to have a page that either displays:
>
> 1. Your account information if you are logged in.
> 2. A form for account creation if you are not.
>
> For pages where authentication is turned on, I know that I can satisfy #1 by
> checking $midgard->user. However, authentication and this page don't mix
> very well. It requires a login which breaks #2.
Set the host (and page) to not require authentication, and create a
login/create account page that uses mgd_auth_midgard to send the user
the login cookie. In your site style you can then check whether
$midgard->user is set and redirect to the login page if not.
You'll require the latest midgard-php-1.2.5 (recently fixed for this)
to use this.
Emile
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]