Re-add the restriction for emails to not include links … #2611
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…(but only for non-logged in users)
If we do go this route, we will likely want to update some relevant help text/flash messages.
Feedback Form/Help Text
Feedback Flash Message
Record Email Form/Help Text
Record Email Flash Message
Possible Alternative
The main reason why we are re-implementing this is reCaptcha has been solved and we're seeing an increasing amount of spam coming through. I looked at updating to V3 (although that also appears to have been solved), but it would present some additional design changes. This captcha is no-friction (e.g. no action required by the user) and instead monitors behavior to "score" how likely the user is human vs. a bot. This could allow us to block the emails outright, present a traditional captcha, etc. however; might not actually do us any good if the bots are solving the captcha in other ways.
If we did look into captcha V3, the design changes we'll need to account for is there is a requirement to have the reCaptcha brand, privacy policy link, and ToS link as part of the user flow (source). They add a little icon on all pages, but we could avoid that by adding something like what is described in the above link on the feedback / email forms themselves.
On all pages
vs
Only in the forms/user flow