Marten already provides a csrf_token template tag in order to generate the CSRF token value and access it in templates. Let's also introduce a csrf_input template tag that will make it easy to generate the following form input containing the CSRF token:
Description
Marten already provides a
csrf_token
template tag in order to generate the CSRF token value and access it in templates. Let's also introduce acsrf_input
template tag that will make it easy to generate the following form input containing the CSRF token:This will make it easier to write forms containing a CSRF token input and not bother about possible typos regarding the input name.