mirror of
https://github.com/kataras/iris.git
synced 2025-02-09 02:34:55 +01:00
fix comment on csrf example
Former-commit-id: c5c001cbc5381fb169429f132ea18c4fc7c76a42
This commit is contained in:
parent
969c2e87d4
commit
687477f210
|
@ -39,7 +39,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func getSignupForm(ctx iris.Context) {
|
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!
|
// csrf.TemplateField to inject the CSRF token into. Easy!
|
||||||
ctx.ViewData(csrf.TemplateTag, csrf.TemplateField(ctx))
|
ctx.ViewData(csrf.TemplateTag, csrf.TemplateField(ctx))
|
||||||
ctx.View("user/signup.html")
|
ctx.View("user/signup.html")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user