mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-01-20 10:52:15 +01:00
bugfix addkey
This commit is contained in:
parent
0d50871a72
commit
ff88d2d0a5
@ -89,7 +89,7 @@ if ($keyid > 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function reply($status, $apiKey, $client_id, $nonce, $sn='', $info='') {
|
function reply($status, $apiKey, $client_id, $nonce, $sn='', $info='') {
|
||||||
global $tokenId, $secret;
|
global $tokenId, $secret, $usrid;
|
||||||
|
|
||||||
if ($status == null) {
|
if ($status == null) {
|
||||||
$status = S_BACKEND_ERROR;
|
$status = S_BACKEND_ERROR;
|
||||||
@ -108,10 +108,8 @@ function reply($status, $apiKey, $client_id, $nonce, $sn='', $info='') {
|
|||||||
echo 'sn='.$sn.PHP_EOL;
|
echo 'sn='.$sn.PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($tokenId != '') {
|
|
||||||
echo 'token_id='.($a['token_id'] = $tokenId).PHP_EOL;
|
echo 'token_id='.($a['token_id'] = $tokenId).PHP_EOL;
|
||||||
echo 'user_id='.($a['user_id'] = $tokenId).PHP_EOL;//TODO
|
echo 'user_id='.($a['user_id'] = $usrid).PHP_EOL;//TODO
|
||||||
}
|
|
||||||
|
|
||||||
echo 't='.($a['t']=getUTCTimeStamp()).PHP_EOL;
|
echo 't='.($a['t']=getUTCTimeStamp()).PHP_EOL;
|
||||||
$h = sign($a, $apiKey);
|
$h = sign($a, $apiKey);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user