X-Git-Url: http://git.pjr.cc/?a=blobdiff_plain;f=authserver%2Flib%2Flib.php;h=4ec23898a8aa3511ce730c78bf4a27fe85f5cc9e;hb=2e2593d79cc3b24e0db34ec434e7f4383cf3651d;hp=cf4c39e43dc923c13764a3f8185fe5d5865ec7b0;hpb=d1eae3d523f459b4cdd5e1bfc776690d0ad96069;p=ga4php.git diff --git a/authserver/lib/lib.php b/authserver/lib/lib.php index cf4c39e..4ec2389 100644 --- a/authserver/lib/lib.php +++ b/authserver/lib/lib.php @@ -11,6 +11,8 @@ define("MSG_AUTH_USER_PASSWORD", 4); 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"); @@ -75,7 +77,7 @@ class gaasGA extends GoogleAuthenticator { // we need to check if the user exists, and if so put the data, if not create the data $sql = "select * from users where users_username='$username'"; - $res = $dbOject->query($sql); + $res = $dbObject->query($sql); if($res->fetchColumn() > 0) { // do update $sql = "update users set users_tokendata='$data' where users_username='$username'";