• Resolved guypsemperis

    (@guypsemperis)


    Hi. First, thank you very much for helping me resolve my previous problem with setting up the registration page / MailGun validation.

    Now that it is set up and I see that MailGun is being called, I have encountered a new problem. Invalid addresses do not cause an error to be shown, nor do they block registration.
    From looking at the wpas_mailgun_check, and at MailGun’s json response, I see that:
    1. invalid emails are marked in the json as "is_valid": false
    2. the only check that is performed on the values from MailGun’s response is whether it contains a value in did_you_mean

    According to the description in the SETTINGS under “Email Checking”:
    “When enabled, the plugin will make sure the e-mail address used is valid and can receive e-mails”

    But when MailGun returns "is_valid": false, unless there is a value in did_you_mean, nothing is shown to the user.

    Please correct me if this is not the case, but I would expect that a user would be blocked from completing registration in the case where the email that was entered is deemed invalid. Is this the intended result?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter guypsemperis

    (@guypsemperis)

    Sooo… I decided to just code a fix myself – of course, not by changing the WPAS plugin. Thankfully, (which is to say, thank you), the plugin is well written and adding the validation that I wanted to user registration was a relatively simple matter of calling:
    add_filter('wpas_register_account_errors', '[MY_VALIDATION_FUNCTION]');
    (relatively simple because I am not all that adept at php in general, nor wordpress plugins in particular)

    Plugin Author awesomesupport

    (@awesomesupport)

    Aw, shoot. We completely missed this query. Looks like we might have missed a ww.wp.xz.cn email when this was originally posted. Glad you got it sorted out though.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘email checking on registration doesn’t validate’ is closed to new replies.