remove cookie on logout

This commit is contained in:
Cadey Ratio 2019-11-19 17:35:51 +00:00
parent ed7eab99f8
commit 648b7b55b9
1 changed files with 1 additions and 0 deletions

View File

@ -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)
}