-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
I made a change to classes/register.php where I looked for a custom field named "33+11" and if so then I made sure that the user entered custom value was '44' lest an error appear. I dont know if this will stop spam registrations, but I am hopeful it will slow them down.
My solution was to hard code it:
$ diff register.php register.php.original
251,255d250
< if( ($mk === '33+11') && ($custom_value != '44' )){
< $errors->add( "hum_error", sprintf( __( '<strong>ERROR</strong>: Human Verification is required. [%s]', 'wp-login-flow' ), $custom_field['label'] ) );
< break;
< }
<
347c342
< }
---
> }A more elegant solution would be to set the meta key to humanverify:answer and then check that the custom value is equal to "answer" but I dont know php that well and I just did the bare minimum for now.
I dont know if this code is still active -- regardless it still works - I would not mind doing a PR when I get time if that is ok as well.
Metadata
Metadata
Assignees
Labels
No labels
