Skip to content

Commit

Permalink
fix: login
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotonQuantum committed Jun 4, 2024
1 parent c48aafc commit ce357c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysjtu/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def login(self, username: str, password: str):
for i in self._retry:
login_page_req = self._secure_req(
partial(self.get, consts.LOGIN_URL, validate_session=False, headers=consts.HEADERS))
uuid = re.findall(r"(?<=uuid\": ').*(?=')", login_page_req.text)[0]
uuid = re.findall(r"(?<=uuid=).*(?=\")", login_page_req.text)[0]
login_params = {k: v[0] for k, v in parse_qs(urlparse(str(login_page_req.url)).query).items()}

captcha_img = self.get(consts.CAPTCHA_URL,
Expand Down

0 comments on commit ce357c6

Please sign in to comment.