From 38d464c10c97dd7237b2b1b260f296d0f14e31ae Mon Sep 17 00:00:00 2001 From: shenshuo <191715030@qq.com> Date: Thu, 6 Jun 2024 20:53:41 +0800 Subject: [PATCH] =?UTF-8?q?2024=E5=B9=B46=E6=9C=8806=E6=97=A5=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=A0=B9=E5=9F=9F=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=80=BB=E8=BE=9105?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mg/handlers/login_v5_handler.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/mg/handlers/login_v5_handler.py b/mg/handlers/login_v5_handler.py index 3c48547..0b146ec 100644 --- a/mg/handlers/login_v5_handler.py +++ b/mg/handlers/login_v5_handler.py @@ -136,19 +136,10 @@ async def handle_verification(self): class LogoutHandler(RequestHandler, ABC): - def get_root_domain(self): - import re - # 获取当前站点域名 - domain = self.request.host - logging.error(f"get_root_domain {self.request.host}") - # 解析根域名 - root_domain = re.search(r'\.([^.]+\.[^.]+)$', domain).group(1) - return root_domain - def get(self): try: self.clear_all_cookies() - root_domain = self.get_root_domain() + root_domain = self.request.headers.get('_codo_root_domain') logging.error(root_domain) self.clear_cookie("auth_key", domain=root_domain) self.clear_cookie("is_login", domain=root_domain)