1
0
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:
Paul Chen 2008-12-17 05:28:54 +00:00
parent ff88d2d0a5
commit 550b6bd6f6

View File

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