summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils.lisp4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils.lisp b/utils.lisp
index 47cfc5a..4bae17e 100644
--- a/utils.lisp
+++ b/utils.lisp
@@ -393,7 +393,9 @@ ELEMENT-TYPE as the stream's."
(time (and (stringp timestamp)
(cybertiggyr-time:parse-time timestamp
(list (cybertiggyr-time::make-fmt-recognizer "%Y-%m-%dT%H:%M:%SZ")))))
- (nonce (cdr (assoc "nonce" params :test 'equalp)))
+ (encoded-nonce (cdr (assoc "nonce" params :test 'equalp)))
+ (nonce (and encoded-nonce
+ (cl-base64:base64-string-to-string encoded-nonce)))
(user (cdr (assoc "username" params :test 'equalp)))
(their-digest (cdr (assoc "passworddigest" params :test 'equalp)))
(our-digest (and (stringp nonce)