mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-26 21:54:16 +01:00
Drop some comments.
- not really helpful, better to just depend on what the code does.
This commit is contained in:
parent
d0a8657e84
commit
cf3b089fcc
@ -417,10 +417,6 @@ if ($syncres == False)
|
||||
sendResp(S_NOT_ENOUGH_ANSWERS, $myLog, $apiKey, $extra);
|
||||
}
|
||||
|
||||
/* Recreate parameters to make phising test work out
|
||||
TODO: use timefunctionality in deltatime library instead */
|
||||
|
||||
// check the time stamp
|
||||
if ($otpParams['yk_counter'] == $localParams['yk_counter'] && $otpParams['yk_use'] > $localParams['yk_use'])
|
||||
{
|
||||
$ts = ($otpParams['yk_high'] << 16) + $otpParams['yk_low'];
|
||||
@ -428,7 +424,6 @@ if ($otpParams['yk_counter'] == $localParams['yk_counter'] && $otpParams['yk_use
|
||||
$tsDiff = $ts - $seenTs;
|
||||
$tsDelta = $tsDiff * TS_SEC;
|
||||
|
||||
// check the real time
|
||||
$now = time();
|
||||
$elapsed = $now - $localParams['modified'];
|
||||
$deviation = abs($elapsed - $tsDelta);
|
||||
|
Loading…
x
Reference in New Issue
Block a user