X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=blobdiff_plain;f=authserver%2Fauthd%2Fauthd.php;h=576a507a3751743137e1ec44ee50b17812f42497;hp=c1e1722169dfc941ca9024f1a80ce3995529c623;hb=2d6b0d3ff36c0e388ea51163cb2ebee072a03dab;hpb=491639811383704f32a0e5614e6d62fea2105878 diff --git a/authserver/authd/authd.php b/authserver/authd/authd.php index c1e1722..576a507 100644 --- a/authserver/authd/authd.php +++ b/authserver/authd/authd.php @@ -122,10 +122,17 @@ if($pid == -1) { $tokenone = $msg["tokenone"]; $tokentwo = $msg["tokentwo"]; - msg_send($cl_queue,MSG_SYNC_TOKEN, $myga->resyncCode($username, $tokenone, $tokentwo)); + msg_send($cl_queue, MSG_SYNC_TOKEN, $myga->resyncCode($msg["username"], $tokenone, $tokentwo)); } break; + case MSG_GET_TOKEN_TYPE: + if(!isset($msg["username"])) { + msg_send($cl_queue, MSG_GET_TOKEN_TYPE, false); + } else { + msg_send($cl_queue, MSG_GET_TOKEN_TYPE, $myga->getTokenType($msg["username"])); + } + break; case MSG_ADD_USER_TOKEN: echo "Call to add user token\n"; if(!isset($msg["username"])) {