mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-08 03:54:20 +01:00
Refactor.
- str sub instead of concat.
This commit is contained in:
parent
2b434df808
commit
e604477fff
@ -285,14 +285,14 @@ $yk_publicname = substr($otp, 0, strlen ($otp) - TOKEN_LEN);
|
||||
$localParams = $sync->getLocalParams($yk_publicname);
|
||||
if (!$localParams)
|
||||
{
|
||||
$myLog->log(LOG_NOTICE, 'Invalid Yubikey ' . $yk_publicname);
|
||||
$myLog->log(LOG_NOTICE, "Invalid Yubikey $yk_publicname");
|
||||
sendResp(S_BACKEND_ERROR, $myLog, $apiKey);
|
||||
}
|
||||
|
||||
$myLog->log(LOG_DEBUG, "Auth data:", $localParams);
|
||||
if ($localParams['active'] != 1)
|
||||
{
|
||||
$myLog->log(LOG_NOTICE, 'De-activated Yubikey ' . $yk_publicname);
|
||||
$myLog->log(LOG_NOTICE, "De-activated Yubikey $yk_publicname");
|
||||
sendResp(S_BAD_OTP, $myLog, $apiKey);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user