diff --git a/src/lib.rs b/src/lib.rs index b51c5ac..79c893b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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() } diff --git a/src/steamapi.rs b/src/steamapi.rs index 5b20f21..f97022e 100644 --- a/src/steamapi.rs +++ b/src/steamapi.rs @@ -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, client: reqwest::blocking::Client, } @@ -85,7 +82,6 @@ impl UserLogin { email_code: String::from(""), steam_id: 0, cookies: reqwest::cookie::Jar::default(), - // cookies: Arc::::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::().unwrap(); let cookies = self.cookies.cookies(&url).unwrap(); let all_cookies = cookies.to_str().unwrap();