1
0
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:
Jean Paul Galea 2015-07-17 23:11:32 +02:00
parent 2b434df808
commit e604477fff

View File

@ -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);
}