mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-04 01:09:27 +02:00
logout correct cookie path.
This commit is contained in:
parent
dabda571d4
commit
28f3397723
1 changed files with 0 additions and 2 deletions
|
@ -57,7 +57,6 @@ func (api *ApiManagerCtx) Logout(w http.ResponseWriter, r *http.Request) {
|
|||
http.SetCookie(w, &http.Cookie{
|
||||
Name: "neko-id",
|
||||
Value: "",
|
||||
Path: "/",
|
||||
Expires: time.Unix(0, 0),
|
||||
HttpOnly: false,
|
||||
})
|
||||
|
@ -65,7 +64,6 @@ func (api *ApiManagerCtx) Logout(w http.ResponseWriter, r *http.Request) {
|
|||
http.SetCookie(w, &http.Cookie{
|
||||
Name: "neko-secret",
|
||||
Value: "",
|
||||
Path: "/",
|
||||
Expires: time.Unix(0, 0),
|
||||
HttpOnly: true,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue