X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=blobdiff_plain;f=authserver%2Flib%2FauthClient.php;h=e1b941f0fb2e4bb056036795c0291818efc83003;hp=58de4ec023c8e407d7b501a71be2f8363653bfe4;hb=e2e22b45b14cae630587bc662a8bfcda98b04510;hpb=0938694abe67f09a9a21f922a3178a6be9e59e63 diff --git a/authserver/lib/authClient.php b/authserver/lib/authClient.php index 58de4ec..e1b941f 100644 --- a/authserver/lib/authClient.php +++ b/authserver/lib/authClient.php @@ -55,7 +55,7 @@ class GAAuthClient { return $msg; } - function getOtkPng($username) { + function getOtkPng($otk) { global $MSG_QUEUE_KEY_ID_SERVER, $MSG_QUEUE_KEY_ID_CLIENT; @@ -71,7 +71,8 @@ class GAAuthClient { $cl_queue = msg_get_queue($MSG_QUEUE_KEY_ID_CLIENT); $sr_queue = msg_get_queue($MSG_QUEUE_KEY_ID_SERVER); - $message["username"] = $username; + $message["otk"] = $otk; + error_log("sending message, $otk"); msg_send($sr_queue, MSG_GET_OTK_PNG, $message, true, true, $msg_err); msg_receive($cl_queue, 0, $msg_type, 16384, $msg);