Support » Plugin: User Verification » All domains disallowed by default

  • For me the current version of the plugin in the WordPress repository (1.0.31) seems to block every domain that is not in the “allowed domains” list, regardless of whether “Enable blocking email domain on registration” is set.

    It looks like the problem is in the user_verification_is_emaildomain_allowed function. It sets $response to false, but the only opportunity for $response to be set to true is inside an if statement that only executes if the user_verification_enable_block_domain setting is “yes” (starts on line 173 of functions.php).

    The best solution I can see is to add the following after that if block (line 182 of functions.php):

    else:
          return true;

    (Don’t forget to put a semicolon after the closing bracket on the nested if statement that ends right before that “else” or you’ll get a PHP error.)

    I’d be happy to do a pull request, but it looks like the GitHub repository is out of date (version 1.0.18).

    Thank you!

    • This topic was modified 9 months, 2 weeks ago by davidpurdy.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘All domains disallowed by default’ is closed to new replies.