/**
* Get a user, specified by ID, username or email address.
*
* @param integer|string $userId
*
* @return array|false
*/
public function getUser($userId)
{
if ($userEntity = $this->repository->getUser($userId)) {
$userEntity->setPassword('**dontchange**');
return $userEntity->toArray();
}
return false;
}