mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-01-20 01:52:15 +01:00
anti otp phishing
This commit is contained in:
parent
6dc200ad48
commit
6d63f4554c
@ -156,7 +156,7 @@ if ($scDiff == 0) { // Same use session, check time stamp diff
|
||||
$elapsed = time() - $lastTime;
|
||||
debug('Elapsed time from last validation: ' . $elapsed . ' secs');
|
||||
$deviation = abs($elapsed - $tsDelta);
|
||||
$percent = truncate($deviation/$elapsed, 8) . '%';
|
||||
$percent = truncate(100*$deviation/$elapsed, 8) . '%';
|
||||
debug("Key time deviation vs. elapsed time=".$deviation.' secs ('.
|
||||
$percent.')');
|
||||
if ($deviation > TS_TOLERANCE * $elapsed) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user