소스 검색

Merge pull request #15 from eeowaa/login-fix

Default pass to empty string in bitwarden-login
Sean Farley 3 년 전
부모
커밋
f7ff63928f
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      bitwarden.el

+ 3 - 2
bitwarden.el

@@ -245,8 +245,9 @@ printed to minibuffer."
         (bitwarden--raw-unlock (list "login") print-message))
     (unless bitwarden-user
       (setq bitwarden-user (read-string "Bitwarden email: ")))
-    (let ((pass (when bitwarden-automatic-unlock
-                  (funcall bitwarden-automatic-unlock))))
+    (let ((pass (if bitwarden-automatic-unlock
+                    (funcall bitwarden-automatic-unlock)
+                  "")))
       (bitwarden--raw-unlock (list "login" bitwarden-user pass) print-message))))
 
 (defun bitwarden-lock ()