mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-27 06:54:16 +01:00
Refactor.
- $status is always set in invocation, and never to null.
This commit is contained in:
parent
c258997f51
commit
ba82acf79b
@ -246,10 +246,6 @@ function KSMdecryptOTP($urls, $logger, $curlopts) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function sendResp($status, $logger, $apiKey = '', $extra = null) {
|
function sendResp($status, $logger, $apiKey = '', $extra = null) {
|
||||||
if ($status == null) {
|
|
||||||
$status = S_BACKEND_ERROR;
|
|
||||||
}
|
|
||||||
|
|
||||||
$a['status'] = $status;
|
$a['status'] = $status;
|
||||||
$a['t'] = getUTCTimeStamp();
|
$a['t'] = getUTCTimeStamp();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user