Skip to content

Commit c607ba2

Browse files
authored
update (#2)
1 parent 6555583 commit c607ba2

File tree

5 files changed

+1059
-7
lines changed

5 files changed

+1059
-7
lines changed

echo/templates/render.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@ func GetTemplateRender(rootDir string) *TemplateRenderer {
2323
}
2424

2525
func Render(c echo.Context, code int, name string, data map[string]interface{}) error {
26-
type auth struct {
27-
CSRF string `param:"csrf" query:"csrf" header:"csrf" form:"csrf" json:"csrf" xml:"csrf"`
28-
}
29-
authArtifacts := &auth{
30-
CSRF: c.Get("csrf").(string),
31-
}
32-
data["security"] = authArtifacts
26+
3327
return c.Render(code, name, data)
3428
}
3529

0 commit comments

Comments
 (0)