I have implemented some custom authentication within some midgard pages,
but the solution is not very clean. If you do your build authentication
scheme, $midgard->user is not set properly. Also, many functions within
midgard rely on $midgard->user, so you can't use them with your
authentication scheme (i.e. midgard thinks the user is not
authenticated). I would like to see a way to set $midgard->user through
some function so I can support my own authentication scheme and use the
midgard functions. 

- MJW

"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.
> 
> Thanks for any insight.  By the way, I am running midgarg 1.2.5.
> 
> --
> 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]

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

Reply via email to