mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-01-20 01:52:15 +01:00
print more debug info on time based otp phishing
This commit is contained in:
parent
ff88d2d0a5
commit
550b6bd6f6
@ -153,8 +153,7 @@ if ($scDiff == 0) { // Same use session, check time stamp diff
|
||||
|
||||
if ($ad['chk_time']) {
|
||||
$lastTime = strtotime($ad['accessed']);
|
||||
//$lastAccess = $ad['accessed'];
|
||||
//echo 'Last accessed: '.$lastAccess.' '.date("F j, Y, g:i a", $lastTime)."\n";
|
||||
debug('Last accessed: '.$lastAccess.', '.$lastTime.', '.date("F j, Y, g:i a", $lastTime));
|
||||
$elapsed = time() - $lastTime;
|
||||
debug('Elapsed time from last validation: ' . $elapsed . ' secs');
|
||||
$deviation = abs($elapsed - $tsDelta);
|
||||
|
Loading…
x
Reference in New Issue
Block a user