X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=blobdiff_plain;f=authserver%2Fusercmd.php;h=1d4db80da87403f0c8f6c5e97097da3708f6f9d7;hp=5888c0f8b0a271d5e6b8fab692fba530278ca533;hb=2d6b0d3ff36c0e388ea51163cb2ebee072a03dab;hpb=491639811383704f32a0e5614e6d62fea2105878 diff --git a/authserver/usercmd.php b/authserver/usercmd.php index 5888c0f..1d4db80 100644 --- a/authserver/usercmd.php +++ b/authserver/usercmd.php @@ -38,10 +38,15 @@ if(!isset($argv[1])) { echo "\tgetotk: getotk - gets the OTKID for a key\n"; echo "\tradauth: radauth - for radius, only returns a code\n"; echo "\tsynctoken: synctoken - resync's a hotp token based on two token codes\n"; + echo "\ttokentype: tokentype - gets the token type for a user\n"; return 0; } switch($argv[1]) { + case "tokentype": + $msg = $myAC->getUserTokenType($argv[2]); + echo "token type: $msg\n"; + break; case "synctoken": if($myAC->syncUserToken($argv[2], $argv[3], $argv[4])) { echo "Token synced\n";