remove commented code
This commit is contained in:
parent
9aea25ea32
commit
66731164d6
2 changed files with 0 additions and 9 deletions
|
@ -101,9 +101,7 @@ impl SteamGuardAccount {
|
|||
|
||||
let time_bytes: [u8; 8] = build_time_bytes(time / 30i64);
|
||||
let shared_secret: [u8; 20] = parse_shared_secret(self.shared_secret.clone());
|
||||
// println!("time_bytes: {:?}", time_bytes);
|
||||
let hashed_data = hmacsha1::hmac_sha1(&shared_secret, &time_bytes);
|
||||
// println!("hashed_data: {:?}", hashed_data);
|
||||
let mut code_array: [u8; 5] = [0; 5];
|
||||
let b = (hashed_data[19] & 0xF) as usize;
|
||||
let mut code_point: i32 =
|
||||
|
@ -117,8 +115,6 @@ impl SteamGuardAccount {
|
|||
code_point /= steam_guard_code_translations.len() as i32;
|
||||
}
|
||||
|
||||
// println!("code_array: {:?}", code_array);
|
||||
|
||||
return String::from_utf8(code_array.iter().map(|c| *c).collect()).unwrap()
|
||||
}
|
||||
|
||||
|
|
|
@ -10,8 +10,6 @@ struct LoginResponse {
|
|||
success: bool,
|
||||
#[serde(default)]
|
||||
login_complete: bool,
|
||||
// #[serde(default)]
|
||||
// oauth: String,
|
||||
#[serde(default)]
|
||||
captcha_needed: bool,
|
||||
#[serde(default)]
|
||||
|
@ -69,7 +67,6 @@ pub struct UserLogin {
|
|||
pub steam_id: u64,
|
||||
|
||||
cookies: reqwest::cookie::Jar,
|
||||
// cookies: Arc<reqwest::cookie::Jar>,
|
||||
client: reqwest::blocking::Client,
|
||||
}
|
||||
|
||||
|
@ -85,7 +82,6 @@ impl UserLogin {
|
|||
email_code: String::from(""),
|
||||
steam_id: 0,
|
||||
cookies: reqwest::cookie::Jar::default(),
|
||||
// cookies: Arc::<reqwest::cookie::Jar>::new(reqwest::cookie::Jar::default()),
|
||||
client: reqwest::blocking::ClientBuilder::new()
|
||||
.cookie_store(true)
|
||||
.build()
|
||||
|
@ -257,7 +253,6 @@ impl UserLogin {
|
|||
}
|
||||
}
|
||||
|
||||
// let oauth: OAuthData = serde_json::from_str(login_resp.oauth.as_str()).unwrap();
|
||||
let url = "https://steamcommunity.com".parse::<Url>().unwrap();
|
||||
let cookies = self.cookies.cookies(&url).unwrap();
|
||||
let all_cookies = cookies.to_str().unwrap();
|
||||
|
|
Loading…
Reference in a new issue