You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a site admin, I want to disallow email addresses from being used in the name field so that spam is reduced.
We still get spammy donors despite several measures we've taken. But an easy thing we could also do is simply add a validation check on the first name to prevent an email address from being used there.
Current Behavior
I currently see email addresses submitted in the name field, which indicate spam.
Expected Behavior
I expect to see Give prevent these spammy submissions.
Possible Solution
Check for the presence of an @ character in the First Name and Last Name fields and prevent submission.
Steps to Reproduce
Create a new form with default settings.
Enter fake email address test@example.com into the First or Last Name fields.
Attempt to submit form.
Visuals
Tasks
Detect email in name fields using is_email() in server-side PHP validation.
kevinwhoffman
changed the title
feat(form): Disallow email address from being used in first name
feat(form): disallow email address as first name
Mar 13, 2018
@Sidsector9 I built out the issue that @mathetos started so you can tackle this in the next sprint. Please ensure you validate both client-side and server-side.
@Sidsector9 I've updated your Tasks to only require server-side validation with is_email(). Don't worry about client-side as I don't expect many real users to be entering emails into the name field, and even if they do, it would be caught server-side.
User Story
As a site admin, I want to disallow email addresses from being used in the name field so that spam is reduced.
We still get spammy donors despite several measures we've taken. But an easy thing we could also do is simply add a validation check on the first name to prevent an email address from being used there.
Current Behavior
I currently see email addresses submitted in the name field, which indicate spam.
Expected Behavior
I expect to see Give prevent these spammy submissions.
Possible Solution
Check for the presence of an
@
character in theFirst Name
andLast Name
fields and prevent submission.Steps to Reproduce
test@example.com
into the First or Last Name fields.Visuals
Tasks
is_email()
in server-side PHP validation.<First Name|Last Name> cannot contain email address.
The text was updated successfully, but these errors were encountered: