public function getUser($userId = null, $options = []) {
		$options = Hash::merge($this->getConfig('getUser'), $options);

		if (is_null($userId)) {
			if (isset($this->_getRequest()->getParam('pass')[0])) {
				$userId = $this->_getRequest()->getParam('pass')[0];
			}
		}

		$entity = $this->UserTable->getUser($userId);
		if ($options['viewVar'] !== false) {
			$this->getController()->set($options['viewVar'], $entity);
			$this->getController()->set('_serialize', [$options['viewVar']]);
		}

		return $entity;
	}