0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-22 14:39:45 -05:00

Revert session cookie name change.

This commit is contained in:
Andrey Antukh 2021-05-04 14:14:31 +02:00
parent 92d1dcb3d4
commit 5e329e62b3

View file

@ -21,7 +21,7 @@
;; A default cookie name for storing the session. We don't allow
;; configure it.
(def cookie-name "session-id")
(def cookie-name "auth-token")
;; --- IMPL
@ -53,11 +53,11 @@
(defn- add-cookies
[response {:keys [id] :as session}]
(assoc response :cookies {"session-id" {:path "/" :http-only true :value id}}))
(assoc response :cookies {cookie-name {:path "/" :http-only true :value id}}))
(defn- clear-cookies
[response]
(assoc response :cookies {"session-id" {:value "" :max-age -1}}))
(assoc response :cookies {cookie-name {:value "" :max-age -1}}))
(defn- middleware
[cfg handler]