Skip to content

Commit

Permalink
Sixth attempt to implement SMS 2FA for #51
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadoum committed May 30, 2024
1 parent eb0221d commit 2df2051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/server/appleaccount.d
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ package class AppleAccount {
} else {
sendCode = () {
// urls["trustedDeviceSecondaryAuth"] to select the right phone number.
auto res = request.put(urls["secondaryAuth"]);
auto res = request.get(urls["secondaryAuth"]);
// auto res = request.put("https://gsa.apple.com/auth/verify/phone/", `{"phoneNumber": {"id": 1}, "mode": "sms"}`);
log.infoF!"Code sent: %s"(res.responseBody().data!string());
return res.code == 200;
Expand Down

0 comments on commit 2df2051

Please sign in to comment.