code fix for #908, and work for #884

This commit is contained in:
Unknwon 2015-02-06 21:16:23 -05:00
parent 87b90372a7
commit 216683004e
4 changed files with 5 additions and 2 deletions

View file

@ -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)
}
}