reactjs
This commit is contained in:
@@ -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"],
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user