diff --git a/bot_z/bot_z.py b/bot_z/bot_z.py index eae25ae..31453a6 100644 --- a/bot_z/bot_z.py +++ b/bot_z/bot_z.py @@ -238,9 +238,10 @@ class Operator(wd.Firefox): """ _base_domain = ".".join(self.uri.netloc.split(".")[-2:]) cookies = [c["name"] for c in self.get_cookies() if _base_domain in c["domain"]] - _right_url = "/jsp/home.jsp" in self.current_url - _cookies = "dtLatC" in cookies - return _right_url and _cookies + self.logger.debug("Cookies: %s", cookies) + # _right_url = "/jsp/home.jsp" in self.current_url + _cookies = all(c in cookies for c in ("spcookie", "JSESSIONID", "ipclientid")) + return _cookies @property def checked_in(self) -> bool: