From b6a043ae672f2138ec48036a837fc54d0e3b789e Mon Sep 17 00:00:00 2001 From: Vincent Son <107471539+szw0407@users.noreply.github.com> Date: Sat, 12 Oct 2024 15:17:25 +0800 Subject: [PATCH] Refactor login function to remove unnecessary LT parameter. This is DEPRECATED and NOT WORKING AT ALL --- src/login/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/login/main.py b/src/login/main.py index 21c1c90..86936e3 100644 --- a/src/login/main.py +++ b/src/login/main.py @@ -18,7 +18,7 @@ def restful_login(username, password, baseURL="https://pass.sdu.edu.cn/") -> str # 发送第一个请求,获取ticket ticket = httpx.post( f"{baseURL}cas/restlet/tickets", - content=f"username={username}&password={password}<=LT-1-1-1", + content=f"username={username}&password={password}", ).text if not ticket.startswith("TGT"): raise Exception(