mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 07:10:56 +03:00
http cookie: add max-age and samesite
update deps too
This commit is contained in:
@@ -1032,7 +1032,7 @@ func handleWebAdminChangePwdPost(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
func handleWebLogout(w http.ResponseWriter, r *http.Request) {
|
||||
c := jwtTokenClaims{}
|
||||
c.removeCookie(w, r)
|
||||
c.removeCookie(w, r, webBaseAdminPath)
|
||||
|
||||
http.Redirect(w, r, webLoginPath, http.StatusFound)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user