X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=blobdiff_plain;f=authserver%2Fusercmd.php;h=bbd82471f1af9bb46884947688bd2bd6fd97953c;hp=f6ff83cabef7ddb98b3b0dcebbf17a9f484377c7;hb=7cdd4cb7ea1bec4975802863a1143da1369d288c;hpb=d1eae3d523f459b4cdd5e1bfc776690d0ad96069 diff --git a/authserver/usercmd.php b/authserver/usercmd.php index f6ff83c..bbd8247 100644 --- a/authserver/usercmd.php +++ b/authserver/usercmd.php @@ -13,8 +13,27 @@ require_once("lib/authClient.php"); $myAC = new GAAuthClient(); +/* +define("MSG_AUTH_USER_TOKEN", 1); +define("MSG_ADD_USER_TOKEN", 2); +define("MSG_DELETE_USER", 3); +define("MSG_AUTH_USER_PASSWORD", 4); +define("MSG_SET_USER_PASSWORD", 5); +define("MSG_SET_USER_REALNAME", 6); +define("MSG_SET_USER_TOKEN", 7); +define("MSG_SET_USER_TOKEN_TYPE", 8); + + */ if(!isset($argv[1])) { - echo "Usage: ".$argv[0]." add|auth username passcode\n"; + echo "Usage: ".$argv[0]." command username [args]\n"; + echo "\tadd: add - returns token code url\n"; + echo "\tauth: auth - returns 0/1 for pass/fail\n"; + echo "\tdelete: delete - deletes user\n"; + echo "\tauthpass: authpass - returns 0/1 for pass/fail\n"; + echo "\tsetpass: setpass - sets a password for a user (x to remove pass)\n"; + echo "\tsetname: setname - sets the real name for a user\n"; + echo "\tsettoken: settoken - sets the key (hex) for a token\n"; + echo "\tsettype: settype - sets a token type for a user\n"; return 0; } @@ -29,5 +48,17 @@ switch($argv[1]) { case "add": $myAC->addUser($argv[2]); break; + case "delete": + break; + case "authpass": + break; + case "setpass": + break; + case "setname": + break; + case "settoken": + break; + case "settype": + break; } ?> \ No newline at end of file