Set remember me to true to avoid Apple emails

This commit is contained in:
Niccolò Zapponi 2020-11-17 08:36:08 +00:00
parent 1675a8dc11
commit e14d22908d
No known key found for this signature in database
GPG key ID: 328B304DC670A51E
2 changed files with 4 additions and 4 deletions

View file

@ -281,7 +281,7 @@ class PyiCloudService(object):
data = dict(self.user)
data["rememberMe"] = False
data["rememberMe"] = True
data["trustTokens"] = []
if self.session_data.get("trust_token"):
data["trustTokens"] = [self.session_data.get("trust_token")]
@ -316,7 +316,7 @@ class PyiCloudService(object):
data = {
"accountCountryCode": self.session_data.get("account_country"),
"dsWebAuthToken": self.session_data.get("session_token"),
"extended_login": False,
"extended_login": True,
"trustToken": self.session_data.get("trust_token", ""),
}

View file

@ -188,7 +188,7 @@ LOGIN_WORKING = {
"settings",
],
"version": 2,
"isExtendedLogin": False,
"isExtendedLogin": True,
"pcsServiceIdentitiesIncluded": True,
"hsaChallengeRequired": False,
"requestInfo": {"country": "FR", "timeZone": "GMT+1", "region": "IDF"},
@ -381,7 +381,7 @@ LOGIN_2FA = {
"settings",
],
"version": 2,
"isExtendedLogin": False,
"isExtendedLogin": True,
"pcsServiceIdentitiesIncluded": False,
"hsaChallengeRequired": True,
"requestInfo": {"country": "FR", "timeZone": "GMT+1", "region": "IDF"},