aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/core/context.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/core/context.go')
-rw-r--r--server/core/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/core/context.go b/server/core/context.go
index 217e4d4..393060d 100644
--- a/server/core/context.go
+++ b/server/core/context.go
@@ -82,7 +82,7 @@ func (c *Context) UserLanguage() string {
// CsrfToken returns the current CSRF token.
func (c *Context) CsrfToken() string {
- if v := c.request.Context().Value(middleware.CsrfContextKey); v != nil {
+ if v := c.request.Context().Value(middleware.TokenContextKey); v != nil {
return v.(string)
}