Set remember me to true to avoid Apple emails
This commit is contained in:
parent
1675a8dc11
commit
e14d22908d
2 changed files with 4 additions and 4 deletions
|
@ -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", ""),
|
||||
}
|
||||
|
||||
|
|
|
@ -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"},
|
||||
|
|
Loading…
Reference in a new issue