> If the username and password is correct, and the user is root, then
> yes. It'd be useful if you also included the return value of
> mgd_errstr in the report, and the return value of
want a surprise?
$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?
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
13 Query SELECT gid FROM member WHERE uid=10 AND sitegroup in (0, 2) ORDER BY
gid DESC
sitegroup=2? how?
>
> select id,sitegroup from person where username='admin' and
> (MID(password,Length(password),2) = 'pass' or password =
> Password('pass'));
>
> substitutin 'admin' and 'pass' of course.
empty set, but I cannot define my pass, cause it is secured in mysql table.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]