mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
add vscode extension link and badge | Some internal improvements (not completed yet)
Former-commit-id: 9bc94e90a2780ee81f8188509d98063fb3f2924b
This commit is contained in:
@@ -42,7 +42,7 @@ func getSignupForm(ctx iris.Context) {
|
||||
// views/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("views/user/signup.html")
|
||||
ctx.View("user/signup.html")
|
||||
|
||||
// We could also retrieve the token directly from csrf.Token(r) and
|
||||
// set it in the request header - ctx.GetHeader("X-CSRF-Token", token)
|
||||
|
||||
Reference in New Issue
Block a user