~~ssh~~ https auto update

This commit is contained in:
lhy6305 2024-09-24 17:34:47 +08:00
parent 7a67683ab6
commit 023237dff9

View File

@ -62,7 +62,6 @@ if(!array_key_exists("game", $query)||gettype($query["game"])!="string"||strlen(
require(__DIR__."/phplib/libvar_gsec.php"); require(__DIR__."/phplib/libvar_gsec.php");
$game=$query["game"]; $game=$query["game"];
$team_token=$query["ttoken"];
if(!array_key_exists($game, $gsecret_l)) { if(!array_key_exists($game, $gsecret_l)) {
gen_error_400("game '".$game."' is not found in config file."); gen_error_400("game '".$game."' is not found in config file.");
@ -85,6 +84,7 @@ if(!array_key_exists("ttoken", $query)||gettype($query["ttoken"])!="string"||str
exit; exit;
} }
$team_token=$query["ttoken"];
//verify the [game, team-hash] pair (team_token auth) //verify the [game, team-hash] pair (team_token auth)