Fix error message for accounts not yet migrated to ByteBooks

This commit is contained in:
Florian Bach
2026-06-24 07:06:05 +02:00
parent fb288afb3a
commit bccca4094f
+4 -3
View File
@@ -450,18 +450,19 @@ def signIn(account_type, username, passwd):
return False, "Invalid username or password!"
elif ("E_AUTH_FAILED" in err and "LOGIN_FAILED" in err):
return False, "E_AUTH_FAILED/LOGIN_FAILED. If you have 2FA enabled, please disable that and try again."
elif ("E_ADEPT_RESET_PW_REQUIRED" in err):
return False, "Server requires a password reset due to ByteBooks migration. See https://dtsbytebooks.com/transition-help"
else:
return False, "Unknown Adobe error:" + credentials
return False, "Unknown Adobe error:" + str(credentials)
elif (credentialsXML.tag == adNS("credentials")):
pass
#print("Login successful")
else:
return False, "Invalid main tag " + credentialsXML.tag
except:
return False, "Invalid response to login request"
return False, "Invalid response to login request (please open a bug report)"
# Got correct credentials