public static function checkAuth($username, $ip, $blid)
 {
     $res = BlocklandAuth::auth($username, $ip);
     if ($res !== false) {
         return $res == $blid;
     } else {
         return false;
     }
 }
Esempio n. 2
0
 public static function checkAuth($username, $ip, $blid)
 {
     $authData = BlocklandAuth::auth($username, $ip);
     if ($authData[0] == "success") {
         if ($authData[1] == $blid) {
             return true;
         } else {
             return false;
         }
     } else {
         return $authData;
     }
 }
 function attemptBlocklandAuth()
 {
     return BlocklandAuth::checkAuth($this->name, $this->ip, $this->blid);
 }