X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=blobdiff_plain;f=authserver%2Fauthd%2Fauthd.php;h=afe3883aeb30a3182e2c3d50325cf54eb669c7cd;hp=2474b3a8a8f942f238882940c4e354291e1653ba;hb=07e42724b584df5d317a72b0e0ed1bafbc744b8f;hpb=1065be060c1b237c4fcdfdef6e3e2ee663d1ca33 diff --git a/authserver/authd/authd.php b/authserver/authd/authd.php index 2474b3a..afe3883 100644 --- a/authserver/authd/authd.php +++ b/authserver/authd/authd.php @@ -76,7 +76,11 @@ if($pid == -1) { } else { $username = $msg["username"]; global $myga; - msg_send($cl_queue, MSG_DELETE_USER, $myga->deleteUser($username)); + $sql = "delete from users where users_username='$username'"; + $dbo = getDatabase(); + $dbo->query($sql); + + msg_send($cl_queue, MSG_DELETE_USER, true); } break; case MSG_AUTH_USER_PASSWORD: @@ -177,8 +181,10 @@ if($pid == -1) { } global $myga; - $myga->setUserKey($username, $passcode); - msg_send($cl_queue, MSG_SET_USER_TOKEN, $myga->createUrl($username)); + $username = $msg["username"]; + $token = $msg["tokenstring"]; + $return = $myga->setUserKey($username, $token); + msg_send($cl_queue, MSG_SET_USER_TOKEN, $return); // TODO now set token break;