From: paulr Date: Mon, 15 Nov 2010 06:15:26 +0000 (+1100) Subject: im not really sure... X-Git-Url: http://git.pjr.cc/?a=commitdiff_plain;h=62e6511826267382d3ccfb130c2db28aa5c316c2;p=ga4php.git im not really sure... --- diff --git a/lib/lib.php b/lib/lib.php index 8967ffe..faf2cf4 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -228,7 +228,7 @@ class GoogleAuthenticator { $en = $tlid+20; for($i=$st; $i<$en; $i++) { $stest = $this->oath_hotp($tkey, $i); - error_log("code: $code, $stest, $tkey, $tid"); + //error_log("code: $code, $stest, $tkey, $tid"); if($code == $stest) { $sql = "update tokens set token_lastid='$i' where token_id='$tid'"; $this->dbConnector->query($sql); @@ -243,10 +243,10 @@ class GoogleAuthenticator { $t_lat = $t_now + 60; $t_st = ((int)($t_ear/30)); $t_en = ((int)($t_lat/30)); - error_log("kmac: $t_now, $t_ear, $t_lat, $t_st, $t_en"); + //error_log("kmac: $t_now, $t_ear, $t_lat, $t_st, $t_en"); for($i=$t_st; $i<=$t_en; $i++) { $stest = $this->oath_hotp($tkey, $i); - error_log("code: $code, $stest, $tkey\n"); + //error_log("code: $code, $stest, $tkey\n"); if($code == $stest) { return true; }