diff options
author | 2017-12-16 18:07:53 -0800 | |
---|---|---|
committer | 2017-12-16 18:07:53 -0800 | |
commit | 00257988ef1707a028cd7dd0b1f8f68e6e8fac53 (patch) | |
tree | f54ccd93abb5054336baea1f0a4a99f8700fc81a /server/ui/controller/controller.go | |
parent | 58acd1d5e3a997d27f60549b51bdf41df900c6c6 (diff) | |
download | v2-00257988ef1707a028cd7dd0b1f8f68e6e8fac53.tar.gz v2-00257988ef1707a028cd7dd0b1f8f68e6e8fac53.tar.zst v2-00257988ef1707a028cd7dd0b1f8f68e6e8fac53.zip |
Session management refactoring
Diffstat (limited to 'server/ui/controller/controller.go')
-rw-r--r-- | server/ui/controller/controller.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/server/ui/controller/controller.go b/server/ui/controller/controller.go index cfecf42d..8f1f4154 100644 --- a/server/ui/controller/controller.go +++ b/server/ui/controller/controller.go @@ -44,10 +44,11 @@ func (c *Controller) getCommonTemplateArgs(ctx *core.Context) (tplParams, error) } params := tplParams{ - "menu": "", - "user": user, - "countUnread": countUnread, - "csrf": ctx.CsrfToken(), + "menu": "", + "user": user, + "countUnread": countUnread, + "csrf": ctx.CSRF(), + "flashMessage": ctx.FlashMessage(), } return params, nil } |