diff options
author | Alexander NeonXP Kiryukhin <i@neonxp.ru> | 2024-07-20 21:56:37 +0300 |
---|---|---|
committer | Alexander NeonXP Kiryukhin <i@neonxp.ru> | 2024-07-20 21:58:27 +0300 |
commit | e9a64f3b41b5eae47dec7c0ecfd1caae83136abc (patch) | |
tree | c07898520a7015c3f2a201ca0674efea82dd76a5 /views/csrf.templ | |
parent | 9c0a6b21f8f8d9b725e1fe7f11da4532e04fd9f1 (diff) |
initialv0.0.1
Diffstat (limited to 'views/csrf.templ')
-rw-r--r-- | views/csrf.templ | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/views/csrf.templ b/views/csrf.templ new file mode 100644 index 0000000..2bb3545 --- /dev/null +++ b/views/csrf.templ @@ -0,0 +1,7 @@ +package views + +import "github.com/labstack/echo/v4" + +templ CSRF() { + <input type="hidden" name={echo.HeaderXCSRFToken} value={ ctx.Value("csrf").(string) }/> +} |