summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/middleware/context.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go
index 571b19bf73..2d24d0ce58 100644
--- a/modules/middleware/context.go
+++ b/modules/middleware/context.go
@@ -125,6 +125,7 @@ func (ctx *Context) HasValue(name string) bool {
// HTML calls Context.HTML and converts template name to string.
func (ctx *Context) HTML(status int, name base.TplName) {
+ log.Debug("Template: %s", name)
ctx.Context.HTML(status, string(name))
}
@@ -241,6 +242,7 @@ func Contexter() macaron.Handler {
ctx.Data["CsrfToken"] = x.GetToken()
ctx.Data["CsrfTokenHtml"] = template.HTML(`<input type="hidden" name="_csrf" value="` + x.GetToken() + `">`)
+ log.Debug("CSRF Token: %v | %v", ctx.Data["CsrfToken"], ctx.GetCookie("_csrf"))
ctx.Data["ShowRegistrationButton"] = setting.Service.ShowRegistrationButton
ctx.Data["ShowFooterBranding"] = setting.ShowFooterBranding