Added new trust token support for old 2SA method

This commit is contained in:
Niccolò Zapponi 2020-11-05 08:02:05 +00:00
parent c6fecebde6
commit fc833555ac
No known key found for this signature in database
GPG key ID: 328B304DC670A51E

View file

@ -414,9 +414,7 @@ class PyiCloudService(object):
return False return False
raise raise
# Re-authenticate, which will both update the HSA data, and self.trust_session()
# ensure that we save the X-APPLE-WEBAUTH-HSA-TRUST cookie.
self.authenticate()
return not self.requires_2sa return not self.requires_2sa