mirror of
https://github.com/Leseratte10/acsm-calibre-plugin
synced 2026-06-29 01:30:55 -04:00
Fix error message for accounts not yet migrated to ByteBooks
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user