X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=blobdiff_plain;f=authserver%2Flib%2Flib.php;h=dbdd35f8c9683cfbf6590afae611186903c06152;hp=eb4fc64112dc91452143985e37eb283e945ff5f1;hb=1065be060c1b237c4fcdfdef6e3e2ee663d1ca33;hpb=3354ed0d5c9f3877ac2222ac25326acd05d3d236 diff --git a/authserver/lib/lib.php b/authserver/lib/lib.php index eb4fc64..dbdd35f 100644 --- a/authserver/lib/lib.php +++ b/authserver/lib/lib.php @@ -12,6 +12,7 @@ define("MSG_SET_USER_PASSWORD", 5); define("MSG_SET_USER_REALNAME", 6); define("MSG_SET_USER_TOKEN", 7); define("MSG_SET_USER_TOKEN_TYPE", 8); +define("MSG_GET_USERS", 9); if(file_exists("../../lib/ga4php.php")) require_once("../../lib/ga4php.php"); if(file_exists("../lib/ga4php.php")) require_once("../lib/ga4php.php"); @@ -43,6 +44,7 @@ function closeDatabase($db) { class gaasGA extends GoogleAuthenticator { function getData($username) { + echo "called into getdata\n"; // get our database connection $dbObject = getDatabase(); @@ -54,14 +56,17 @@ class gaasGA extends GoogleAuthenticator { $result = $dbObject->query($sql); // check the result + echo "next1\n"; if(!$result) return false; // now just retreieve all the data (there should only be one, but whatever) + echo "next2\n"; $tokendata = false; foreach($result as $row) { $tokendata = $row["users_tokendata"]; } - + + echo "next3, $username, $tokendata\n"; // now we have our data, we just return it. If we got no data // we'll just return false by default return $tokendata; @@ -117,4 +122,4 @@ class gaasGA extends GoogleAuthenticator { } } -?> \ No newline at end of file +?>