async def METHOD_NAME(self, request: Request) -> None:
    version = parse_string(request, "v", required=True)
    username = parse_string(request, "u", required=True)
    args: Dict[bytes, List[bytes]] = request.args  # type: ignore
    userhmac = parse_bytes_from_args(args, "h", required=True)
    self._check_hash(username, userhmac)
    if username.startswith("@"):
        qualified_user_id = username
    else:
        qualified_user_id = UserID(username, self.hs.hostname).to_string()
    try:
        await self.store.user_set_consent_version(qualified_user_id, version)
    except StoreError as e:
        if e.code != 404:
            raise
        raise NotFoundError("Unknown user")
    await self.registration_handler.post_consent_actions(qualified_user_id)
    try:
        self._render_template(request, "success.html")
    except TemplateNotFound:
        raise NotFoundError("success.html not found")