mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 23:40:35 +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) {
|
||||
// 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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user