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 time_bytes: [u8; 8] = build_time_bytes(time / 30i64);
|
||||||
let shared_secret: [u8; 20] = parse_shared_secret(self.shared_secret.clone());
|
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);
|
let hashed_data = hmacsha1::hmac_sha1(&shared_secret, &time_bytes);
|
||||||
// println!("hashed_data: {:?}", hashed_data);
|
|
||||||
let mut code_array: [u8; 5] = [0; 5];
|
let mut code_array: [u8; 5] = [0; 5];
|
||||||
let b = (hashed_data[19] & 0xF) as usize;
|
let b = (hashed_data[19] & 0xF) as usize;
|
||||||
let mut code_point: i32 =
|
let mut code_point: i32 =
|
||||||
|
@ -117,8 +115,6 @@ impl SteamGuardAccount {
|
||||||
code_point /= steam_guard_code_translations.len() as i32;
|
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()
|
return String::from_utf8(code_array.iter().map(|c| *c).collect()).unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,6 @@ struct LoginResponse {
|
||||||
success: bool,
|
success: bool,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
login_complete: bool,
|
login_complete: bool,
|
||||||
// #[serde(default)]
|
|
||||||
// oauth: String,
|
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
captcha_needed: bool,
|
captcha_needed: bool,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
|
@ -69,7 +67,6 @@ pub struct UserLogin {
|
||||||
pub steam_id: u64,
|
pub steam_id: u64,
|
||||||
|
|
||||||
cookies: reqwest::cookie::Jar,
|
cookies: reqwest::cookie::Jar,
|
||||||
// cookies: Arc<reqwest::cookie::Jar>,
|
|
||||||
client: reqwest::blocking::Client,
|
client: reqwest::blocking::Client,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,7 +82,6 @@ impl UserLogin {
|
||||||
email_code: String::from(""),
|
email_code: String::from(""),
|
||||||
steam_id: 0,
|
steam_id: 0,
|
||||||
cookies: reqwest::cookie::Jar::default(),
|
cookies: reqwest::cookie::Jar::default(),
|
||||||
// cookies: Arc::<reqwest::cookie::Jar>::new(reqwest::cookie::Jar::default()),
|
|
||||||
client: reqwest::blocking::ClientBuilder::new()
|
client: reqwest::blocking::ClientBuilder::new()
|
||||||
.cookie_store(true)
|
.cookie_store(true)
|
||||||
.build()
|
.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 url = "https://steamcommunity.com".parse::<Url>().unwrap();
|
||||||
let cookies = self.cookies.cookies(&url).unwrap();
|
let cookies = self.cookies.cookies(&url).unwrap();
|
||||||
let all_cookies = cookies.to_str().unwrap();
|
let all_cookies = cookies.to_str().unwrap();
|
||||||
|
|
Loading…
Reference in a new issue