diff --git a/src/main.rs b/src/main.rs index dbc5f59..c7c028b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -209,6 +209,18 @@ fn main() { } } + println!("Authenticator finalized."); + match manifest.save() { + Ok(_) => {} + Err(err) => { + println!( + "Failed to save manifest, but we were able to save it before. {}", + err + ); + return; + } + } + return; } diff --git a/steamguard/src/steamapi.rs b/steamguard/src/steamapi.rs index 22cb78d..4a96864 100644 --- a/steamguard/src/steamapi.rs +++ b/steamguard/src/steamapi.rs @@ -28,7 +28,7 @@ pub struct LoginResponse { pub captcha_needed: bool, #[serde(default)] pub captcha_gid: String, - #[serde(default)] + #[serde(default, deserialize_with = "parse_json_string_as_number")] pub emailsteamid: u64, #[serde(default)] pub emailauth_needed: bool,