diff options
| author | ckonstanski <ckonstanski@pippiandcarlos.com> | 2018-02-06 21:42:54 -0700 |
|---|---|---|
| committer | ckonstanski <ckonstanski@pippiandcarlos.com> | 2018-02-06 21:42:54 -0700 |
| commit | 142166df54eda65925921799a4bb3e7f6cdaba48 (patch) | |
| tree | 5dc70e16bd6719079651925b5c5769211a3bf27e /service/logout.lisp | |
initial commit
Diffstat (limited to 'service/logout.lisp')
| -rw-r--r-- | service/logout.lisp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/service/logout.lisp b/service/logout.lisp new file mode 100644 index 0000000..68dd9d0 --- /dev/null +++ b/service/logout.lisp @@ -0,0 +1,19 @@ +;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*- +(declaim (optimize (speed 0) (safety 3) (debug 3))) + +(in-package #:music-dispensary) + +;; ========================================================================== ;; + +(defclass logout (rest-service) + ((location-p :initarg :location-p + :initform nil + :accessor location-p)) + (:documentation "")) + +(defmethod initialize-instance :after ((logout logout) &key) + (setf (message logout) "You are now logged out.")) + +(defun logout-json () + (setf (session-value :permissions) "anonymous") + (objects-to-json `(,(make-instance 'logout)))) |
