aboutsummaryrefslogtreecommitdiff
path: root/modules/middleware/context.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/middleware/context.go')
-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 fc781440..28be3a30 100644
--- a/modules/middleware/context.go
+++ b/modules/middleware/context.go
@@ -192,6 +192,8 @@ func Contexter() macaron.Handler {
ctx.Data["CsrfToken"] = x.GetToken()
ctx.Data["CsrfTokenHtml"] = template.HTML(`<input type="hidden" name="_csrf" value="` + x.GetToken() + `">`)
+ ctx.Data["ShowRegistrationButton"] = setting.Service.ShowRegistrationButton
+
c.Map(ctx)
}
}