3 // ok, so this will be our overloading class
4 require_once("../lib/lib.php");
6 class myGoogleAuth extends GoogleAuthenticator {
8 function getData($username) {
11 $res = $dbobject->query("select users_tokendata from users where users_username='$username'");
12 foreach($res as $row) {
13 $data = $row["users_tokendata"];
16 error_log("data was: $data");
21 function putData($username, $data) {
24 $res = $dbobject->query("update users set users_tokendata='$data' where users_username='$username'");
32 $res = $dbobject->query("select users_username from users");
36 foreach($res as $row) {
37 $ar[$i] = $row["users_username"];