pp wrote:

> > use mgd_auth_midgard("admin", "pass", 0);
> > 
> > if you do $env = mgd_get_midgard(), $env->user should be non-0 and
> > $env->sitegroup should be 0.
> 
> echo for user and sitegroup  returns 00 as I need, but content is not displayed.

If $env->user is 0 than the authentication failed. There is no user 0.

> mysql:
> 223 Query       SELECT admingroup FROM sitegroup WHERE id=2
> 223 Query       SELECT id,password FROM person WHERE username='adminroot' AND 
>sitegroup=2

You're in SG2, appearantly. It's fetching the admingroup so it can
later test to see if you're admin for that SG.

> All I made with sucess is 
> mgd_auth_midgard("admin!SG1", "pass", 0);
> and display SG1 object
> and next back to SG2
> mgd_auth_midgard("admin!SG2", "pass", 0);

I would expect that
mgd_auth_midgard("admin", "pass", 0);
and display SG1 object
and next back to SG2
mgd_auth_midgard("admin!SG2", "pass", 0);
would work too.

Emile



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

Reply via email to