mirror of
https://github.com/penpot/penpot.git
synced 2026-05-11 11:03:52 +00:00
🐛 Fix cookie elimination issues.
This commit is contained in:
parent
449ca770c1
commit
4dad6bef40
@ -55,7 +55,7 @@
|
||||
(-> (session/delete token)
|
||||
(p/then' (fn [token]
|
||||
{:status 204
|
||||
:cookies {"auth-token" {:value nil}}
|
||||
:cookies {"auth-token" nil}
|
||||
:body ""})))))
|
||||
|
||||
(defn register-handler
|
||||
|
||||
@ -55,7 +55,9 @@
|
||||
^HttpServerResponse res (get-in data [:request ::vh/response])]
|
||||
(when (map? cookies)
|
||||
(vu/doseq [[key val] cookies]
|
||||
(.addCookie res (build-cookie key val))))
|
||||
(if (nil? val)
|
||||
(.removeCookie res key)
|
||||
(.addCookie res (build-cookie key val)))))
|
||||
data))})
|
||||
|
||||
;; --- Params
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user