fix: treat a logged-out launcher (autologin off, token 0) as needing login
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7513fef6f8
commit
8774e850b6
2 files changed
+10
-2
No files matched your search
@@ -93,7 +93,8 @@ class MudfishClient:
|
||||
st = self.status()
|
||||
if st.get("isSignedIn") and not force:
|
||||
return st
|
||||
if not st.get("token_v3") or not st.get("username"):
|
||||
# A logged-out launcher reports autologin=False and token_v3="0".
|
||||
if not st.get("autologin") or str(st.get("token_v3") or "0") == "0" or not st.get("username"):
|
||||
raise SigninError("no saved login")
|
||||
body, ctype = _multipart({
|
||||
"autologin": "ON", "username": st["username"], "password": st["token_v3"],
|
||||
|
||||
Reference in new issue
Block a user