summaryrefslogtreecommitdiff
path: root/lisp/service/auth-service.lisp
diff options
context:
space:
mode:
authorckonstanski <kostcarl@isu.edu>2026-08-18 20:00:23 -0600
committerckonstanski <kostcarl@isu.edu>2026-08-18 20:00:23 -0600
commit26a106b0d9687be8448e37658887c8bc2937804e (patch)
treec13e2b04583802f7e3c407dc9a7c9f945cc15bfb /lisp/service/auth-service.lisp
parentc3b8f1326a874ae08b394020c6279237b0413293 (diff)
notification cleanup and message marking
Diffstat (limited to 'lisp/service/auth-service.lisp')
-rw-r--r--lisp/service/auth-service.lisp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/service/auth-service.lisp b/lisp/service/auth-service.lisp
index 8450e64..0862147 100644
--- a/lisp/service/auth-service.lisp
+++ b/lisp/service/auth-service.lisp
@@ -20,15 +20,15 @@
(when (null (errormsg ,instance))
,@body)
(when (location-p ,instance)
- (setf (session-value :message) nil)
- (setf (session-value :errormsg) nil))
+ (setf (message instance) nil)
+ (setf (errormsg instance) nil))
(org-ckons-json::objects-to-json `(,,instance))))
(defmacro with-auth-raw ((instance auth-service roles) &body body)
`(let ((,instance (make-instance ',auth-service :roles ,roles)))
(when (location-p ,instance)
- (setf (session-value :message) nil)
- (setf (session-value :errormsg) nil))
+ (setf (message instance) nil)
+ (setf (errormsg instance) nil))
(when (null (errormsg ,instance))
,@body)))
@@ -36,13 +36,13 @@
`(let ((,instance (make-instance ',rest-service)))
,@body
(when (location-p ,instance)
- (setf (session-value :message) nil)
- (setf (session-value :errormsg) nil))
+ (setf (message instance) nil)
+ (setf (errormsg instance) nil))
(org-ckons-json::objects-to-json `(,,instance))))
(defmacro with-noauth-raw ((instance rest-service) &body body)
`(let ((,instance (make-instance ',rest-service)))
(when (location-p ,instance)
- (setf (session-value :message) nil)
- (setf (session-value :errormsg) nil))
+ (setf (message instance) nil)
+ (setf (errormsg instance) nil))
,@body))