Skip to content

Commit

Permalink
Refactor login function to remove unnecessary LT parameter. This is D…
Browse files Browse the repository at this point in the history
…EPRECATED and NOT WORKING AT ALL
  • Loading branch information
szw0407 committed Oct 12, 2024
1 parent 33a587e commit b6a043a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/login/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=LT-1-1-1",
content=f"username={username}&password={password}",
).text
if not ticket.startswith("TGT"):
raise Exception(
Expand Down

0 comments on commit b6a043a

Please sign in to comment.