From ff88d2d0a5c5b00555f76b032fbe729e1d090c8f Mon Sep 17 00:00:00 2001 From: Paul Chen Date: Thu, 11 Dec 2008 18:24:42 +0000 Subject: [PATCH] bugfix addkey --- addKey.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/addKey.php b/addKey.php index f64b82b..bb76324 100644 --- a/addKey.php +++ b/addKey.php @@ -89,7 +89,7 @@ if ($keyid > 0) { } function reply($status, $apiKey, $client_id, $nonce, $sn='', $info='') { - global $tokenId, $secret; + global $tokenId, $secret, $usrid; if ($status == null) { $status = S_BACKEND_ERROR; @@ -108,10 +108,8 @@ function reply($status, $apiKey, $client_id, $nonce, $sn='', $info='') { echo 'sn='.$sn.PHP_EOL; } - if ($tokenId != '') { - echo 'token_id='.($a['token_id'] = $tokenId).PHP_EOL; - echo 'user_id='.($a['user_id'] = $tokenId).PHP_EOL;//TODO - } + echo 'token_id='.($a['token_id'] = $tokenId).PHP_EOL; + echo 'user_id='.($a['user_id'] = $usrid).PHP_EOL;//TODO echo 't='.($a['t']=getUTCTimeStamp()).PHP_EOL; $h = sign($a, $apiKey);