force load all accounts when encrypting and decrypting

This commit is contained in:
Carson McManus 2022-02-22 09:29:34 -05:00
parent ae2049abe8
commit a56659e44f

View file

@ -360,12 +360,14 @@ fn run() -> anyhow::Result<()> {
}
manifest.submit_passkey(passkey);
}
manifest.load_accounts()?;
for entry in &mut manifest.entries {
entry.encryption = Some(accountmanager::EntryEncryptionParams::generate());
}
manifest.save()?;
return Ok(());
} else if matches.is_present("decrypt") {
manifest.load_accounts()?;
for entry in &mut manifest.entries {
entry.encryption = None;
}