mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-02 08:19:14 +02:00
clear cookie if non-existent session.
This commit is contained in:
parent
da1d073846
commit
bf6181764b
4 changed files with 13 additions and 16 deletions
|
@ -49,7 +49,7 @@ func (api *ApiManagerCtx) Logout(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
api.sessions.CookieClearToken(w)
|
||||
api.sessions.CookieClearToken(w, r)
|
||||
|
||||
utils.HttpSuccess(w, true)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue