From e14d22908d32ca60de6c5b3b6babf5f66147b41d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccolo=CC=80=20Zapponi?= Date: Tue, 17 Nov 2020 08:36:08 +0000 Subject: [PATCH] Set remember me to true to avoid Apple emails --- pyicloud/base.py | 4 ++-- tests/const_login.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyicloud/base.py b/pyicloud/base.py index 8f5e126..f69e1a0 100644 --- a/pyicloud/base.py +++ b/pyicloud/base.py @@ -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", ""), } diff --git a/tests/const_login.py b/tests/const_login.py index 352c2ae..bb87eb6 100644 --- a/tests/const_login.py +++ b/tests/const_login.py @@ -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"},