csrfTokenRequired = true; } public function execute($values = array()) { if(!parent::execute($values)) { return false; } if (!$this->user->isLoggedIn()) { $this->result["loggedIn"] = false; } else { $this->result["loggedIn"] = true; } $this->result["user"] = $this->user->jsonSerialize(); return $this->success; } }