Skip to content

Commit

Permalink
Updates the CSRF element documentation with the available options
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Brückner <dev@froschdesignstudio.de>
  • Loading branch information
froschdesign committed Jun 15, 2022
1 parent 62dadd0 commit 4a07a58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/book/v3/element/csrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ $form->add([
'name' => 'csrf',
'options' => [
'csrf_options' => [
'timeout' => 600,
'timeout' => 600, // optional
],
],
]);
```

All available options for the validator are listed in the [laminas-validator documentation](https://docs.laminas.dev/laminas-validator/validators/csrf/#supported-options).

> ### Multiple CSRF elements must be uniquely named
>
> If you are using more than one form on a page, and each contains its own CSRF
Expand Down

0 comments on commit 4a07a58

Please sign in to comment.