GoteoFoundation / goteo

Goteo Version 3, the Open Source Crowdfunding Platform
http://goteo.org
GNU Affero General Public License v3.0
188 stars 133 forks source link

[feat] Antispam forms #609

Closed subiabre closed 4 months ago

subiabre commented 4 months ago

:tophat: What? Why?

Adds trap fields in forms that are invisible to humans and as such will be left blank by them, but that robots might fill.

:pushpin: Related Issues

https://app.asana.com/0/1205580187188381/1207505525955578

Testing

  1. Update your DB: migrate up
  2. Go to the /contact form.
  3. The field is hidden below the regular email input. You can reach it by hitting the Tab key once when focused on the email input field. Introduce any value.
  4. Application will present you with a regular success message. But if you check MailHog nothing should show up. select * from form_honeypot; should show a new record with the value you previously introduced.

:hearts: Thank you!