diff --git a/ykval-verify.php b/ykval-verify.php index 6aef888..439f7d9 100644 --- a/ykval-verify.php +++ b/ykval-verify.php @@ -75,7 +75,7 @@ if ($otp == '') { exit; } -if (strlen($otp) < TOKEN_LEN || strlen ($otp) > TOKEN_MAXLEN) { +if (strlen($otp) < TOKEN_LEN || strlen ($otp) > OTP_MAX_LEN) { $myLog->log(LOG_NOTICE, 'Incorrect OTP length: ' . $otp); sendResp(S_BAD_OTP, $apiKey, $extra); exit;