[pmwiki-users] Validate login/password

Stéphane Heckel hsteph at club-internet.fr
Wed Apr 2 04:07:37 CDT 2008

"Hans" wrote :

> if (@$_POST['authid'])
>  AuthUserId($pagename, stripmagic(@$_POST['authid']),
>             stripmagic(@$_POST['authpw']));
> else SessionAuth($pagename);

this is the code, ... :

  function GetUserInfo($params) {
    $appkeyp=$params->getParam(0); $appkey=$appkeyp->scalarval();
    $usernamep=$params->getParam(1); $username=$usernamep->scalarval();
    $passwordp=$params->getParam(2); $password=$passwordp->scalarval();

    AuthUserId($pagename, $username, $password);
    if (isset($GLOBALS['InvalidLogin'])) {
      return new xmlrpcresp(0, 101, "Invalid username or password");

if $GLOBALS['InvalidLogin'] is set then you have an 'invalid 


More information about the pmwiki-users mailing list