Skip to content

Commit

Permalink
Updated output which code to input
Browse files Browse the repository at this point in the history
  • Loading branch information
dchristl committed Apr 2, 2024
1 parent 174d0d8 commit 6ba2ad8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions endpoint/register/pypush_gsa_icloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def gsa_authenticate(username, password):
spd = plist.loads(PLISTHEADER + spd)

if "au" in resp["Status"] and resp["Status"]["au"] in ["trustedDeviceSecondaryAuth", "secondaryAuth"]:
logger.info("2FA required, requesting code")
logger.info("2FA required, requesting SMS code. (No other 2FA-code will work!)")
# Replace bytes with strings
for k, v in spd.items():
if isinstance(v, bytes):
Expand Down Expand Up @@ -251,7 +251,7 @@ def sms_second_factor(dsid, idms_token):
timeout=5
)
# Prompt for the 2FA code. It's just a string like '123456', no dashes or spaces
code = input("Enter 2FA code: ")
code = input("Enter SMS 2FA code: ")

body['securityCode'] = {'code': code}

Expand Down

0 comments on commit 6ba2ad8

Please sign in to comment.