From 746f76af1827c11389bad03798f0d8cec806d54d Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Tue, 10 Aug 2021 21:07:04 -0400 Subject: [PATCH] fix login response deserialization --- steamguard/src/steamapi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,