fix: stop looking for the CSRF token logout GET
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f0bda26e8c
commit
01907c349f
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue