mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
Former-commit-id: 6f94a79d9ce3ac9b2b05d1e2637059996a02df1d
This commit is contained in:
@@ -44,7 +44,7 @@ func getSignupForm(ctx iris.Context) {
|
||||
ctx.ViewData(csrf.TemplateTag, csrf.TemplateField(ctx))
|
||||
ctx.View("user/signup.html")
|
||||
|
||||
// We could also retrieve the token directly from csrf.Token(r) and
|
||||
// We could also retrieve the token directly from csrf.Token(ctx) and
|
||||
// set it in the request header - ctx.GetHeader("X-CSRF-Token", token)
|
||||
// This is useful if you're sending JSON to clients or a front-end JavaScript
|
||||
// framework.
|
||||
|
||||
Reference in New Issue
Block a user