getPreferences()->toArray(); unset($preferences['smtpPassword']); return array( 'user' => $this->getUser()->toArray(), 'acl' => $this->getAcl()->toArray(), 'preferences' => $preferences, 'token' => $this->getUser()->get('token') ); } public function actionDestroyAuthToken($params, $data) { $token = $data['token']; if (empty($token)) { throw new BadRequest(); } $auth = new \Espo\Core\Utils\Auth($this->getContainer()); return $auth->destroyAuthToken($token); } }