Merge pull request #79 from dyc3/more-account-setup

more account setup
This commit is contained in:
Carson McManus 2021-08-10 22:48:22 -04:00 committed by GitHub
commit 2346d04725
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View file

@ -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; return;
} }

View file

@ -28,7 +28,7 @@ pub struct LoginResponse {
pub captcha_needed: bool, pub captcha_needed: bool,
#[serde(default)] #[serde(default)]
pub captcha_gid: String, pub captcha_gid: String,
#[serde(default)] #[serde(default, deserialize_with = "parse_json_string_as_number")]
pub emailsteamid: u64, pub emailsteamid: u64,
#[serde(default)] #[serde(default)]
pub emailauth_needed: bool, pub emailauth_needed: bool,