loginRequired = true; $this->apiKeyAllowed = false; $this->csrfTokenRequired = true; } public function execute($values = array()) { if(!parent::execute($values)) { 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; } }