1
0
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:
Jean Paul Galea 2015-07-21 20:26:55 +00:00
parent 1ca175ef2e
commit 3414c15eb4

View File

@ -381,14 +381,10 @@ if ($syncres == False)
$myLog->log(LOG_WARNING, 'ykval-verify:notice:Sync failed');
if ($nr_valid_answers != $nr_answers)
{
sendResp(S_REPLAYED_OTP, $myLog, $apiKey, $extra);
}
else
{
$extra['sl'] = $sl_success_rate;
sendResp(S_NOT_ENOUGH_ANSWERS, $myLog, $apiKey, $extra);
}
$extra['sl'] = $sl_success_rate;
sendResp(S_NOT_ENOUGH_ANSWERS, $myLog, $apiKey, $extra);
}
/* Recreate parameters to make phising test work out