force sms 2fa for testing

This commit is contained in:
nab138
2026-01-25 17:34:20 -05:00
parent 97f6f39967
commit aff3c73219

View File

@@ -471,7 +471,7 @@ impl AppleAccount {
if let Some(plist::Value::String(s)) = status.get("au") {
return Ok(match s.as_str() {
"trustedDeviceSecondaryAuth" => LoginState::NeedsDevice2FA,
"trustedDeviceSecondaryAuth" => LoginState::NeedsSMS2FA,
"secondaryAuth" => LoginState::NeedsSMS2FA,
"repair" => LoginState::LoggedIn, // Just means that you don't have 2FA set up
unknown => LoginState::NeedsExtraStep(unknown.to_string()),