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:
ysj7705andClaude Opus 5.5 committed 2026-10-24 21:43:56 +09:00
1 parent 7513fef6f8
commit 8774e850b6
2 files changed
+10 -2

No files matched your search

+2 -1
View File
@@ -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"],