Hi!

I've been playing with midgard trying to do a form authentication.
after the user sends the user and the password I call 
mgd_auth_midgard($username, $password, true) so that a cookie will be sent to 
the browser and user will be authenticated.
I call this function from the ROOT element but before any output is sent to 
the browser.
If the username and password are correct the functions returns true and sets 
the required cookie but the midgard object does not get updated (the 
$midgard->user is still set to 0 and i've been trying to authentifie with uid 
5)

Could someone post an example of form authentication?

Thanks!

Mihai

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to