1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Store tokens in database instead of cookie

This commit is contained in:
Frédéric Guillot 2017-12-01 21:51:22 -08:00
parent 7cecdbb856
commit 1a90c059e7
11 changed files with 160 additions and 58 deletions

View file

@ -37,7 +37,7 @@ func getRoutes(cfg *config.Config, store *storage.Storage, feedHandler *feed.Han
uiHandler := core.NewHandler(store, router, templateEngine, translator, middleware.NewChain(
middleware.NewSessionMiddleware(store, router).Handler,
middleware.Csrf,
middleware.NewTokenMiddleware(store).Handler,
))
router.Handle("/v1/users", apiHandler.Use(apiController.CreateUser)).Methods("POST")