diff --git a/pkg/context/context.go b/pkg/context/context.go index 40d7c8c77..4a11ce064 100644 --- a/pkg/context/context.go +++ b/pkg/context/context.go @@ -212,10 +212,10 @@ func Contexter() macaron.Handler { } } - ctx.Data["CsrfToken"] = x.GetToken() - ctx.Data["CsrfTokenHtml"] = template.HTML(``) + ctx.Data["CSRFToken"] = x.GetToken() + ctx.Data["CSRFTokenHTML"] = template.HTML(``) log.Trace("Session ID: %s", sess.ID()) - log.Trace("CSRF Token: %v", ctx.Data["CsrfToken"]) + log.Trace("CSRF Token: %v", ctx.Data["CSRFToken"]) ctx.Data["ShowRegistrationButton"] = setting.Service.ShowRegistrationButton ctx.Data["ShowFooterBranding"] = setting.ShowFooterBranding diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index 0879b274b..b06cee8b8 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -10,7 +10,7 @@