Skip to content

Commit

Permalink
Readded sms push
Browse files Browse the repository at this point in the history
  • Loading branch information
danny committed Feb 6, 2025
1 parent a04c1a9 commit 0647198
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions endpoint/register/pypush_gsa_icloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,13 @@ def sms_second_factor(dsid, idms_token):
# This will send the 2FA code to the user's phone over SMS
# We don't care about the response, it's just some HTML with a form for entering the code
# Easier to just use a text prompt
requests.put(
"https://gsa.apple.com/auth/verify/phone/",
json=body,
headers=headers,
verify=False,
timeout=5
)

# Prompt for the 2FA code. It's just a string like '123456', no dashes or spaces
code = input("Enter SMS 2FA code: ")
Expand Down

0 comments on commit 0647198

Please sign in to comment.