totpm 0.1.2

A TPM-backed command line TOTP/2FA client, using fprintd for user presence verification.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::{config::Config, result::Result, totp_store::TotpStore};

pub fn run(
    config: Config,
    system: bool,
    go_ahead: bool,
) -> Result<()> {
    if !go_ahead {
        eprintln!("verification flag not specified; aborting");
        return Ok(())
    }
    Ok(TotpStore::clear(config, system)?)
}