summaryrefslogtreecommitdiff
path: root/rt-liberation-rest.el
diff options
context:
space:
mode:
authorYoni Rabkin <yoni@rabkins.net>2020-11-29 22:27:42 -0500
committerYoni Rabkin <yoni@rabkins.net>2020-11-29 22:27:42 -0500
commite7ec4188d9d9b9f3fe89ec49ea49c510d9e3bd7d (patch)
tree4c41fe0e6317ca610f0f08a15f95ca52ba436b48 /rt-liberation-rest.el
parentd86507f7ae75912974e0793d603f68f4b2875969 (diff)
* rt-liberation-rest.el: check for a non-empty string
Diffstat (limited to 'rt-liberation-rest.el')
-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