1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-01-20 01:52:15 +01:00

bugfix addkey

This commit is contained in:
Paul Chen 2008-12-11 18:24:42 +00:00
parent 0d50871a72
commit ff88d2d0a5

View File

@ -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);