View.appendCSRFTokenField

Appends a hidden-field with a generated token that can be used for csrf protection.

class View
final
static if(isWebServer)
void
appendCSRFTokenField
(
string name = null
,
bool appendName = false
)

Parameters

name string

A custom name for the field.

appendName bool

Boolean determining if the custom name should be appened to the default name "formToken".

Meta