force load all accounts when encrypting and decrypting
This commit is contained in:
parent
ae2049abe8
commit
a56659e44f
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue