fix: stop looking for the CSRF token logout GET
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2023-08-15 18:35:49 +02:00
parent f0bda26e8c
commit 01907c349f
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

View File

@ -14,8 +14,6 @@ func Logout() echo.HandlerFunc {
return func(c echo.Context) error {
addHeaders(c)
csrf := c.Get("csrf").(string)
switch {
case c.Request().Method == "POST":
sess, _ := session.Get(setting.SessionCookieName(), c)
@ -47,7 +45,6 @@ func Logout() echo.HandlerFunc {
p.Title = "Logout"
p.Current = "logout"
p.CSRF = csrf
err := c.Render(
http.StatusOK,