Hi Piotras,
On Mon, 30 Jul 2001, pp wrote:
> Why mgd_auth_midgard seems not to be working in 1.4.1?
>
> $uzer = mgd_auth_midgard (login,pass);
> echo "$uzer->username";
>
> echo displays nothing
>
> besides I got some topic and article creations
> after auth, and nothing happens.
mgd_auth_midgard returns true or false, see:
http://www.midgard-project.org/req/midgard-1.4/mgd-auth-midgard.htm
if you want a person object, you could try the following:
<?php
if(mgd_auth_midgard("login","pass"){
$newmidgard = mgd_get_midgard();
$uzer = mgd_get_person($newmidgard->user);
} else {
/* mgd_auth_midgard failed. note that
when using sitegroups you should
be using "login+sitegroup" always,
as mgd_auth_midgard has no notion
of the current sitegroup of a host
the way mod_midgard has when handling
http challenge authentication.
*/
}
?>
Cheers,
--
Envida http://www.envida.net/
Armand A. Verstappen Graadt van Roggenweg 328
[EMAIL PROTECTED] 3531 AH Utrecht
tel: +31 (0)30 298 2255 Postbus 19127
fax: +31 (0)30 298 2111 3501 DC Utrecht
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]