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.submit_passkey(passkey);
|
||||||
}
|
}
|
||||||
|
manifest.load_accounts()?;
|
||||||
for entry in &mut manifest.entries {
|
for entry in &mut manifest.entries {
|
||||||
entry.encryption = Some(accountmanager::EntryEncryptionParams::generate());
|
entry.encryption = Some(accountmanager::EntryEncryptionParams::generate());
|
||||||
}
|
}
|
||||||
manifest.save()?;
|
manifest.save()?;
|
||||||
return Ok(());
|
return Ok(());
|
||||||
} else if matches.is_present("decrypt") {
|
} else if matches.is_present("decrypt") {
|
||||||
|
manifest.load_accounts()?;
|
||||||
for entry in &mut manifest.entries {
|
for entry in &mut manifest.entries {
|
||||||
entry.encryption = None;
|
entry.encryption = None;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue