package ui

// CSRFField renders the hidden CSRF token input required by gorilla/csrf.
// Every <form method="POST"> must include @ui.CSRFField(csrfToken) as its
// first child so that the middleware can validate the double-submit cookie
// (D-15, AUTH-06).
templ CSRFField(token string) {
	<input type="hidden" name="_csrf" value={ token }/>
}
