Skip to content

Commit

Permalink
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 918224b commit 408bdc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/server/appleaccount.d
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ package class AppleAccount {
auto log = getLogger();
return login(applicationInformation, device, adi, appleId, password, (string identityToken, string[string] urls, string urlBagKey, bool canIgnore) {
if (urlBagKey == "repair") {
log.info("Apple tells us that your account is broken. We don't care.");
log.info("Apple tells us that your account is broken. We don't care (they actually just want you to add 2FA).");
return AppleSecondaryActionResponse(Success());
}

if (urlBagKey != "trustedDeviceSecondaryAuth") {
if (urlBagKey != "trustedDeviceSecondaryAuth" && urlBagKey != "secondaryAuth") {
string error = format!`Unsupported next authentication step: "%s"`(urlBagKey);
if (!canIgnore) {
log.error(error);
Expand Down

0 comments on commit 408bdc0

Please sign in to comment.