Skip to content

Commit 6ba2ad8

Browse files
committed
Updated output which code to input
1 parent 174d0d8 commit 6ba2ad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

endpoint/register/pypush_gsa_icloud.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def gsa_authenticate(username, password):
113113
spd = plist.loads(PLISTHEADER + spd)
114114

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

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

0 commit comments

Comments
 (0)