~~ssh~~ https auto update
This commit is contained in:
parent
7a67683ab6
commit
023237dff9
2
api.php
2
api.php
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user