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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user