mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-08 03:54:20 +01:00
bugfix add key
This commit is contained in:
parent
c6270e78d3
commit
e43404e935
@ -17,6 +17,7 @@ if ($client <= 0) {
|
|||||||
reply(S_MISSING_PARAMETER, '', $client, $nonce, 'client');
|
reply(S_MISSING_PARAMETER, '', $client, $nonce, 'client');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
$ci = getClientInfo($client);
|
||||||
|
|
||||||
$h = getHttpVal('h', '');
|
$h = getHttpVal('h', '');
|
||||||
if ($h == '') {
|
if ($h == '') {
|
||||||
@ -25,6 +26,7 @@ if ($h == '') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$op = getHttpVal('operation', '');
|
$op = getHttpVal('operation', '');
|
||||||
|
|
||||||
if ($op == '') {
|
if ($op == '') {
|
||||||
reply(S_MISSING_PARAMETER, '', $client, $nonce, 'operation');
|
reply(S_MISSING_PARAMETER, '', $client, $nonce, 'operation');
|
||||||
exit;
|
exit;
|
||||||
@ -33,8 +35,6 @@ if ($op == '') {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$ci = getClientInfo($client);
|
|
||||||
|
|
||||||
if (! isset($ci['id'])) {
|
if (! isset($ci['id'])) {
|
||||||
debug('Client '.$client.' not found!');
|
debug('Client '.$client.' not found!');
|
||||||
$client = 1;
|
$client = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user