Fix SMS 2FA

This commit is contained in:
nab138
2026-01-26 21:42:52 -05:00
parent 846b6cde05
commit f1790cec3d

View File

@@ -280,10 +280,6 @@ impl AppleAccount {
.grandslam_client .grandslam_client
.get(&submit_code_url)? .get(&submit_code_url)?
.headers(self.build_2fa_headers().await?) .headers(self.build_2fa_headers().await?)
.header(
"X-Apple-I-MD-RINFO",
self.anisette_data.routing_info.clone(),
)
.header("security-code", code) .header("security-code", code)
.send() .send()
.await .await
@@ -414,6 +410,10 @@ impl AppleAccount {
"X-Apple-Identity-Token", "X-Apple-Identity-Token",
reqwest::header::HeaderValue::from_str(&identity)?, reqwest::header::HeaderValue::from_str(&identity)?,
); );
headers.insert(
"X-Apple-I-MD-RINFO",
reqwest::header::HeaderValue::from_str(&self.anisette_data.routing_info)?,
);
Ok(headers) Ok(headers)
} }