commit
2346d04725
2 changed files with 13 additions and 1 deletions
12
src/main.rs
12
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue