def METHOD_NAME(self, username, password):
    data = {
        "szWork": "login",
        "szType": "json",
        "szUid": username,
        "szPassword": password,
        "isSaveId": "true",
        "isSavePw": "false",
        "isSaveJoin": "false",
        "isLoginRetain": "Y",
    }
    res = self.session.http.post("https://login.afreecatv.com/app/LoginAction.php", data=data)
    data = self.session.http.json(res)
    log.trace(f"{data!r}")
    if data["RESULT"] != self.CHANNEL_RESULT_OK:
        return False
    self.save_cookies()
    return True