From 648b7b55b923329e65ae91a0df7a828dce0c7c6c Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Tue, 19 Nov 2019 17:35:51 +0000 Subject: [PATCH] remove cookie on logout --- auth.go | 1 + 1 file changed, 1 insertion(+) diff --git a/auth.go b/auth.go index 392de72..5fa5b80 100644 --- a/auth.go +++ b/auth.go @@ -46,6 +46,7 @@ func logoutUser(w http.ResponseWriter, r *http.Request) { return } + http.SetCookie(w, &http.Cookie{Name: "wasmcloud-token", MaxAge: -1}) log.Printf("logout for %s", u.Username) http.Redirect(w, r, "/login", http.StatusSeeOther) }