def METHOD_NAME(self, user, password, data):
    self.load("http://megarapido.net/login")
    self.load(
        "http://megarapido.net/painel_user/ajax/logar.php",
        post={"login": user, "senha": password},
    )
    html = self.load("http://megarapido.net/gerador")
    if "sair" not in html.lower():
        self.fail_login()
    else:
        m = re.search(self.USER_ID_PATTERN, html)
        if m is not None:
            data["uid"] = m.group(1)
        else:
            self.fail_login("Couldn't find the user ID")