summaryrefslogtreecommitdiff
path: root/lisp/service/logout-service.lisp
blob: 169314e513a65750f46181ab203ff6bb426b2a64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
(declaim (optimize (speed 0) (safety 3) (debug 3)))

(in-package :bogenherr)

(defclass logout-service (rest-service)
  ((location-p :initform nil))
  (:documentation ""))

(defun logout-json ()
  (with-noauth (instance logout-service)
    (set-user (make-default-user))
    (setf (message instance) "You are now logged out.")))