>
> $useradmin = mgd_auth_midgard("admin","pass",0);
> // I think login and pass are 200% correct, I log with them to sitegroup with no
>problem
> if (!$useradmin) { echo "err" .mgd_errstr(); }
> else { echo "errok" .mgd_errstr(); }
> //MGD_ERR_OK
> // looks like useradmin is set
> echo "$useradmin->id";
> //returns nothing
>
> strange?
I changed admin username and now I get "object does not exist"
I got ok err_str cause I had 3 admin usernames
for SG0, SG1, SG2
>
> Just have a look what is in mysql log:
> 13 Query SELECT admingroup FROM sitegroup WHERE id=2
> 13 Query SELECT id,password FROM person WHERE username='admin' AND sitegroup=2
This querry always force object non existens.
Site is in SG2 , and sitegroup for user is selected SG2 , not SG0.
So if I had 3 admin usernames , this querry returned ok , cause there is
username admin with sitegroup 2. Changing SG0 admin username for something else
returend false.
well, I do not like it.
So Am I to set SG0 now?
When I used this functions with SG0 only host , everything was fine.
BTW Anybody uses such authentication in background?
Bug in mgd_auth_midgard doesn't let me think about secure sites :(
Piotras
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]