X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=blobdiff_plain;f=lib%2Fga4php.php;fp=lib%2Fga4php.php;h=3870f9c6fe9e738b820859f5e1efc6c2fc76afef;hp=784a9189d356f1c42e7b37c2d3eeaf8a5aeea485;hb=590f7600a8319d4ae08c32a32e7713ea6f9e2edb;hpb=fbe9740a0e8f0ee450cf2657fca374799e715c7d diff --git a/lib/ga4php.php b/lib/ga4php.php index 784a918..3870f9c 100644 --- a/lib/ga4php.php +++ b/lib/ga4php.php @@ -154,7 +154,7 @@ abstract class GoogleAuthenticator { $en = $tlid+$this->hotpSkew; for($i=$st; $i<$en; $i++) { $stest = $this->oath_hotp($tkey, $i); - error_log("testing code: $code, $stest, $tkey, $tid"); + //error_log("testing code: $code, $stest, $tkey, $tid"); if($code == $stest) { $tokendata["tokencounter"] = $i; $this->internalPutData($username, $tokendata); @@ -199,7 +199,7 @@ abstract class GoogleAuthenticator { // for keys // $this->dbConnector->query('CREATE TABLE "tokens" ("token_id" INTEGER PRIMARY KEY AUTOINCREMENT,"token_key" TEXT NOT NULL, "token_type" TEXT NOT NULL, "token_lastid" INTEGER NOT NULL)'); - $tokendata = internalGetData($username); + $tokendata = $this->internalGetData($username); // TODO: check return value $ttype = $tokendata["tokentype"];