def METHOD_NAME(self):
    if not self.PLUGIN_DOMAIN:
        self.fail_login(self._("Missing PLUGIN DOMAIN"))
    if not self.PLUGIN_URL:
        self.PLUGIN_URL = "http://www.{}/".format(self.PLUGIN_DOMAIN)
    if not self.LOGIN_URL:
        self.LOGIN_URL = urllib.parse.urljoin(self.PLUGIN_URL, "login.html")
    if self.COOKIES:
        self._set_xfs_cookie()