Browse Source

Merge pull request #16 from HyperSuperMetaCtrl/invalidate_bw-session

Invalidate Session on bitwarden-lock
Sean Farley 2 years ago
parent
commit
944e88b267
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bitwarden.el

+ 2 - 2
bitwarden.el

@@ -253,8 +253,8 @@ printed to minibuffer."
 (defun bitwarden-lock ()
   "Lock the bw vault.  Does not ask for confirmation."
   (interactive)
-  (when (bitwarden-unlocked-p)
-    (setenv "BW_SESSION" nil)))
+  (bitwarden-runcmd "lock")
+  (setenv "BW_SESSION" nil))
 
 (defun bitwarden-logout ()
   "Log out bw.  Does not ask for confirmation."