go(logout): let only authorised users log out
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
c8a48cd526
commit
52dfe44080
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user