Example #1
0
 protected function doApiLogin($r)
 {
     Input::ensureRequest($_REQUEST, array("token"));
     if (($apiid = $this->apiLogin($_REQUEST["token"])) !== false) {
         Session::Set(self::apiid, $apiid);
         Session::addRight(self::logged_api);
         Output::success();
     }
     ErrorHandler::error(401);
 }