print revocation code during setup process

This commit is contained in:
Carson McManus 2021-08-25 09:06:42 -04:00
parent 140b2abda6
commit 001e507d30

View file

@ -267,6 +267,9 @@ fn main() {
.lock() .lock()
.unwrap(); .unwrap();
println!("Authenticator has not yet been linked. Before continuing with finalization, please take the time to write down your revocation code: {}", account.revocation_code);
tui::pause();
debug!("attempting link finalization"); debug!("attempting link finalization");
print!("Enter SMS code: "); print!("Enter SMS code: ");
let sms_code = tui::prompt(); let sms_code = tui::prompt();
@ -302,6 +305,8 @@ fn main() {
} }
} }
println!("Authenticator has been finalized. Please actually write down your revocation code: {}", account.revocation_code);
return; return;
} else if let Some(import_matches) = matches.subcommand_matches("import") { } else if let Some(import_matches) = matches.subcommand_matches("import") {
for file_path in import_matches.values_of("files").unwrap() { for file_path in import_matches.values_of("files").unwrap() {