/** * Returns a user that corresponds to the given reset password token or * false if there is no user with the given token. * * @param string $token * * @return ConfideUser */ public function userByResetPasswordToken($token) { $email = $this->passService->getEmailByToken($token); if ($email) { return $this->repo->getUserByEmail($email); } return false; }