v1.0.22
Implemented CSRF Protection when using mezzio-csrf package.
If the system uses mezzio-csrf and the request couldn't be validated, the FormHandler will pass the request with addition attribute "csrfError" to handle that error within your application.
As our Handler needs to know the field in which the CSRF Token is beeing submitted, you have to define that field as "type" => "csrf".
Please see our Docs to see how you can use that.
Be aware:
Our FormHandler is not adding CSRF-tokens to your forms. it just check these tokens if you defined them.
If you want to know how to add a CSRF-token to your application, see:
https://github.com/mezzio/mezzio-csrf