X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=blobdiff_plain;f=authserver%2Flib%2FauthClient.php;h=2783e9152b2a4efa378d414a163f737778fa27f7;hp=64093e2e13ab0b024384e97660ba99d2b3a8999e;hb=d1eae3d523f459b4cdd5e1bfc776690d0ad96069;hpb=ae879118f79612ed5ded5c52fa695f7074b4c461 diff --git a/authserver/lib/authClient.php b/authserver/lib/authClient.php index 64093e2..2783e91 100644 --- a/authserver/lib/authClient.php +++ b/authserver/lib/authClient.php @@ -3,6 +3,27 @@ require_once("lib.php"); class GAAuthClient { + + function setUserToken($username, $token) { + + } + + function setUserPass($username, $password) { + + } + + function authUserPass($username, $password) { + + } + + function deleteUser($username) { + + } + + function setUserRealName($username, $realname) { + + } + function authUser($username, $passcode) { global $MSG_QUEUE_KEY_ID_SERVER, $MSG_QUEUE_KEY_ID_CLIENT; @@ -11,6 +32,9 @@ class GAAuthClient { return false; } + if(!msg_queue_exists($MSG_QUEUE_KEY_ID_CLIENT)) { + return false; + } // TODO we need to setup a client queue sem lock here $cl_queue = msg_get_queue($MSG_QUEUE_KEY_ID_CLIENT); @@ -38,6 +62,10 @@ class GAAuthClient { return false; } + if(!msg_queue_exists($MSG_QUEUE_KEY_ID_CLIENT)) { + return false; + } + // TODO we need to setup a client queue sem lock here $cl_queue = msg_get_queue($MSG_QUEUE_KEY_ID_CLIENT);