From 287acfc4d2454f95cc75a404580e16a16f0af991 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 20 Jul 2025 15:21:46 +0200 Subject: [PATCH] feat: add csrf input --- form/field_input_csrf.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 form/field_input_csrf.go diff --git a/form/field_input_csrf.go b/form/field_input_csrf.go new file mode 100644 index 0000000..0b25ece --- /dev/null +++ b/form/field_input_csrf.go @@ -0,0 +1,8 @@ +package form + +func NewFieldCsrf(name string) *Field { + f := NewFieldHidden(name). + WithFixedName() + + return f +}