Skip to content

Commit

Permalink
Explain clear comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-garcia committed Nov 15, 2023
1 parent b1b344e commit 65663b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/bitwarden/src/client/encryption_settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ impl EncryptionSettings {

let private_key = self.private_key.as_ref().ok_or(Error::VaultLocked)?;

// Clear the previous keys, if there are any
// Make sure we only keep the keys given in the arguments and not any of the previous
// ones, which might be from organizations that the user is no longer a part of anymore
self.org_keys.clear();

// Decrypt the org keys with the private key
Expand Down

0 comments on commit 65663b2

Please sign in to comment.