mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +03:00
http cookie: add max-age and samesite
update deps too
This commit is contained in:
@@ -273,7 +273,7 @@ func handleClientWebLogin(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
func handleWebClientLogout(w http.ResponseWriter, r *http.Request) {
|
||||
c := jwtTokenClaims{}
|
||||
c.removeCookie(w, r)
|
||||
c.removeCookie(w, r, webBaseClientPath)
|
||||
|
||||
http.Redirect(w, r, webClientLoginPath, http.StatusFound)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user