mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-03-04 03:29:18 +01:00
Unwrap else block.
- sendResp calls exit()
This commit is contained in:
parent
1ca175ef2e
commit
3414c15eb4
@ -381,14 +381,10 @@ if ($syncres == False)
|
|||||||
$myLog->log(LOG_WARNING, 'ykval-verify:notice:Sync failed');
|
$myLog->log(LOG_WARNING, 'ykval-verify:notice:Sync failed');
|
||||||
|
|
||||||
if ($nr_valid_answers != $nr_answers)
|
if ($nr_valid_answers != $nr_answers)
|
||||||
{
|
|
||||||
sendResp(S_REPLAYED_OTP, $myLog, $apiKey, $extra);
|
sendResp(S_REPLAYED_OTP, $myLog, $apiKey, $extra);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$extra['sl'] = $sl_success_rate;
|
$extra['sl'] = $sl_success_rate;
|
||||||
sendResp(S_NOT_ENOUGH_ANSWERS, $myLog, $apiKey, $extra);
|
sendResp(S_NOT_ENOUGH_ANSWERS, $myLog, $apiKey, $extra);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Recreate parameters to make phising test work out
|
/* Recreate parameters to make phising test work out
|
||||||
|
Loading…
x
Reference in New Issue
Block a user