This commit is contained in:
Roman Hergenreder
2020-06-14 12:38:35 +02:00
parent 8fc0b4bb05
commit bc2fbbda68
26 changed files with 21488 additions and 12 deletions

View File

@@ -72,7 +72,7 @@ class Fetch extends Request {
$groupId = intval($row["groupId"]);
$groupName = $row["groupName"];
if (!isset($this->result["users"][$userId])) {
$this->result["users"][$userId] = array(
$this->result["users"][] = array(
"uid" => $userId,
"name" => $row["name"],
"email" => $row["email"],

View File

@@ -17,6 +17,10 @@ class Logout extends Request {
return false;
}
$this->lastError = "CUSTOM ERROR MESSAGE";
$this->success = false;
return false;
$this->success = $this->user->logout();
$this->lastError = $this->user->getSQL()->getLastError();
return $this->success;