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

(in-package :ldapadmin)

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

(defun logout-json ()
  (with-noauth (instance logout-service)
    (setf (session-value :permissions) "anonymous")
    (setf (location instance) "/home")
    (setf (message instance) "You are now logged out.")))