summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rt-liberation-rest.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/rt-liberation-rest.el b/rt-liberation-rest.el
index 67b099e..860ff88 100644
--- a/rt-liberation-rest.el
+++ b/rt-liberation-rest.el
@@ -75,7 +75,9 @@
(defun rt-liber-rest-auth ()
"Try to get the REST credentials."
(if (and (stringp rt-liber-rest-username)
- (stringp rt-liber-rest-password))
+ (stringp rt-liber-rest-password)
+ (< 0 (length rt-liber-rest-username))
+ (< 0 (length rt-liber-rest-password)))
t
(message "rt-liber: no REST credentials set, so attempting auth-source")
(let ((auth-source-found-p