mirror of
https://github.com/nab138/isideload.git
synced 2026-03-02 06:26:16 +01:00
Fix SMS 2FA
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user