mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
logout correct cookie path.
This commit is contained in:
parent
dabda571d4
commit
28f3397723
@ -57,7 +57,6 @@ func (api *ApiManagerCtx) Logout(w http.ResponseWriter, r *http.Request) {
|
|||||||
http.SetCookie(w, &http.Cookie{
|
http.SetCookie(w, &http.Cookie{
|
||||||
Name: "neko-id",
|
Name: "neko-id",
|
||||||
Value: "",
|
Value: "",
|
||||||
Path: "/",
|
|
||||||
Expires: time.Unix(0, 0),
|
Expires: time.Unix(0, 0),
|
||||||
HttpOnly: false,
|
HttpOnly: false,
|
||||||
})
|
})
|
||||||
@ -65,7 +64,6 @@ func (api *ApiManagerCtx) Logout(w http.ResponseWriter, r *http.Request) {
|
|||||||
http.SetCookie(w, &http.Cookie{
|
http.SetCookie(w, &http.Cookie{
|
||||||
Name: "neko-secret",
|
Name: "neko-secret",
|
||||||
Value: "",
|
Value: "",
|
||||||
Path: "/",
|
|
||||||
Expires: time.Unix(0, 0),
|
Expires: time.Unix(0, 0),
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user