fixes #193 fixes #192 fixes #107 - [x] Implement the new login process - [x] Tested - [x] Update the authenticator setup process - [x] Tested - [x] Update the authenticator remove process - [x] Tested - [x] Manifest format migrator - [x] Tested - [x] Make it possible to import SDA accounts - [x] Make sure confirmations still work - [x] Fetching - [x] Responding - [x] Make it so that the login process doesn't prompt for which method to use - [x] Make it so that device confirmation and email confirmation auth session guards work
18 lines
372 B
Rust
18 lines
372 B
Rust
use std::sync::{Arc, Mutex};
|
|
|
|
use log::info;
|
|
|
|
use steamguard::SteamGuardAccount;
|
|
|
|
use crate::do_login;
|
|
|
|
pub fn do_subcmd_test_login(
|
|
selected_accounts: Vec<Arc<Mutex<SteamGuardAccount>>>,
|
|
) -> anyhow::Result<()> {
|
|
for account in selected_accounts {
|
|
let mut account = account.lock().unwrap();
|
|
do_login(&mut account)?;
|
|
info!("Logged in successfully!");
|
|
}
|
|
Ok(())
|
|
}
|