1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 10:27:06 +00:00

fix comment on csrf example

Former-commit-id: c5c001cbc5381fb169429f132ea18c4fc7c76a42
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-01-28 15:43:25 +02:00
parent 969c2e87d4
commit 687477f210

View File

@@ -39,7 +39,7 @@ func main() {
}
func getSignupForm(ctx iris.Context) {
// views/signup.html just needs a {{ .csrfField }} template tag for
// views/user/signup.html just needs a {{ .csrfField }} template tag for
// csrf.TemplateField to inject the CSRF token into. Easy!
ctx.ViewData(csrf.TemplateTag, csrf.TemplateField(ctx))
ctx.View("user/signup.html")