diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/rbw/commands.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/rbw/commands.rs b/src/bin/rbw/commands.rs index f7cd6c2..6d90010 100644 --- a/src/bin/rbw/commands.rs +++ b/src/bin/rbw/commands.rs @@ -325,6 +325,10 @@ pub fn config_set(key: &str, value: &str) -> anyhow::Result<()> { } config.save().context("failed to save config file")?; + // drop in-memory keys, since they will be different if the email or url + // changed + lock()?; + Ok(()) } @@ -342,6 +346,10 @@ pub fn config_unset(key: &str) -> anyhow::Result<()> { } config.save().context("failed to save config file")?; + // drop in-memory keys, since they will be different if the email or url + // changed + lock()?; + Ok(()) } |