Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(form): disallow email address as first name #2862 #2919

Merged
merged 1 commit into from Mar 14, 2018

Conversation

Sidsector9
Copy link
Contributor

@Sidsector9 Sidsector9 commented Mar 14, 2018

Closes #2862

Description

Created a new function give_donation_form_validate_name_fields() which will check if the First and Last name fields contain email address or not.

How Has This Been Tested?

This has been tested manually in logged-in and guest mode.

Video

https://www.useloom.com/share/a4f23a91aba74c0d83f2f8ccc85fec41

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows has proper inline documentation.

This feature helps reduce spam attacks which submits forms by filling the Name fields with email address.
This will throw an error if the Name fields contain email addresses.
@DevinWalker DevinWalker merged commit ea7028e into impress-org:release/2.1 Mar 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants