go(logout): let only authorised users log out
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2023-08-07 14:40:46 +02:00
parent c8a48cd526
commit 52dfe44080
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -65,7 +65,7 @@ func (a *App) SetupRoutes() error {
e.POST("/manage/users/:id/update", handlers.UpdateUser(), handlers.MiddlewareSession)
e.GET("/logout", handlers.Logout(), compress)
e.POST("/logout", handlers.Logout())
e.POST("/logout", handlers.Logout(), handlers.MiddlewareSession)
// administrative endpoints.
e.GET("/admin/*", handlers.Admin())