remove cookie on logout
This commit is contained in:
parent
ed7eab99f8
commit
648b7b55b9
1
auth.go
1
auth.go
|
@ -46,6 +46,7 @@ func logoutUser(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
http.SetCookie(w, &http.Cookie{Name: "wasmcloud-token", MaxAge: -1})
|
||||||
log.Printf("logout for %s", u.Username)
|
log.Printf("logout for %s", u.Username)
|
||||||
http.Redirect(w, r, "/login", http.StatusSeeOther)
|
http.Redirect(w, r, "/login", http.StatusSeeOther)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue