mirror of
https://github.com/miniflux/v2.git
synced 2025-08-31 18:31:01 +00:00
Handle the case when application session is expired and not user session
This commit is contained in:
parent
6378ad2734
commit
7897d8a8ad
5 changed files with 65 additions and 32 deletions
2
ui/ui.go
2
ui/ui.go
|
@ -22,8 +22,8 @@ func Serve(router *mux.Router, cfg *config.Config, store *storage.Storage, pool
|
|||
handler := &handler{router, cfg, store, template.NewEngine(cfg, router), pool, feedHandler}
|
||||
|
||||
uiRouter := router.NewRoute().Subrouter()
|
||||
uiRouter.Use(middleware.handleAppSession)
|
||||
uiRouter.Use(middleware.handleUserSession)
|
||||
uiRouter.Use(middleware.handleAppSession)
|
||||
|
||||
// Static assets.
|
||||
uiRouter.HandleFunc("/stylesheets/{name}.css", handler.showStylesheet).Name("stylesheet").Methods("GET")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue