justb3a / processwire-simplecontactform

Just a simple contact form for ProcessWire.
GNU General Public License v2.0
21 stars 6 forks source link

Fix CSRF error when form submitted more than once #3

Closed vichenze closed 9 years ago

vichenze commented 9 years ago

The token name and the token value are only loaded when the form isn't submitted. Therefore there is an error when I submit the form with an empty field, and then submit it again after correcting the field.

justb3a commented 9 years ago

Resolved. I added a bit more stuff, because after your change the spam protection failed (number of fields did not match).

vichenze commented 9 years ago

Ok, thanks for your work :)