Vets-Who-Code / vets-who-code-app

http://vetswhocode.io
47 stars 38 forks source link

Add a check for length in the footer form to help lessen the amount of spam received #424

Closed gixxerblade closed 2 years ago

gixxerblade commented 2 years ago

Add a check for length in the footer form to help lessen the amount of spam received

Description

Add a checkLength function to the api. The function checks for length of 1. If true, returns a 400

Motivation and Context

Tired of all the spam. Hoping this will lessen it

How Has This Been Tested?

Wrote a unit test with a message with the length of 1

Screenshots (if appropriate):

Types of changes

Checklist:

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
vets-who-code-app ✅ Ready (Inspect) Visit Preview Sep 5, 2022 at 4:14PM (UTC)