Hi all,
We are consistently getting spam registrations where the same name is entered for first and last name in the user profile.
I'm trying to create a validation rule that would check the first and last name and if it is exactly the same, show the error.
I tried adding a "Match against a field" validation to the First Name field:
Entity type: User
Field name: field_profile_last_name
Reverse - checked
I didn't enter anything for Bundle or Column.
When I added this rule and tried to register, it gives me the error all the time, even if the names are not the same.
Can anyone tell me what I am doing wrong or if there is a better way to ensure the first and last names are not the same ?
Thank you
Terry
Comments
Comment #1
g089h515r806 commentedYou need write your own validator, there are no validator support it directly.
Comment #2
tcnolan7 commentedHi, thank you for your reply. I did end up creating a module to validate those 2 fields. And was able to stop a lot of the spam registrations (at least for now)
Terry
Comment #3
g089h515r806 commented