im not really sure...
authorpaulr <me@pjr.cc>
Mon, 15 Nov 2010 06:15:26 +0000 (17:15 +1100)
committerpaulr <me@pjr.cc>
Mon, 15 Nov 2010 06:15:26 +0000 (17:15 +1100)
lib/lib.php

index 8967ffe..faf2cf4 100644 (file)
@@ -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;
                                        }