aboutsummaryrefslogtreecommitdiff
path: root/views/csrf.templ
blob: 2bb3545cfdca9e4a874755df1a47fa60173bce3a (plain) (blame)
1
2
3
4
5
6
7
package views

import "github.com/labstack/echo/v4"

templ CSRF() {
	<input type="hidden" name={echo.HeaderXCSRFToken} value={ ctx.Value("csrf").(string) }/>
}