diff options
Diffstat (limited to 'lisp/service/logout-service.lisp')
| -rw-r--r-- | lisp/service/logout-service.lisp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lisp/service/logout-service.lisp b/lisp/service/logout-service.lisp new file mode 100644 index 0000000..a3c3948 --- /dev/null +++ b/lisp/service/logout-service.lisp @@ -0,0 +1,14 @@ +;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*- +(declaim (optimize (speed 0) (safety 3) (debug 3))) + +(in-package :resume) + +(defclass logout-service (rest-service) + ((location-p :initform nil)) + (:documentation "")) + +(defun logout-json () + (with-noauth (instance logout-service) + (set-user (make-default-user)) + (setf (location instance) "/home") + (setf (message instance) "You are now logged out."))) |
