Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter gmisura

    (@gmisura)

    I updated:

    wordpress-social-login/includes/services/wsl.authentication.php

    Before:

    if( get_option( 'wsl_settings_bouncer_new_users_restrict_email_enabled' ) == 1 )

    I copied the code from later on in the same function and put it just before the restrict_email_enabled:

    // because instagram doesn't (do any?) have an email, we need to check if the option "require email" is set and then get the email from
            // the user BEFORE we filter by email address
            if(
                 ( get_option( 'wsl_settings_bouncer_profile_completion_require_email' ) == 1 && empty( $hybridauth_user_email ) )
                 ||
                 get_option( 'wsl_settings_bouncer_profile_completion_change_username' ) == 1
              )
            {
                            do
                            {
                                    list
                                    (
                                            $shall_pass,
                                            $requested_user_login,
                                            $requested_user_email
                                    )
                                    = wsl_process_login_complete_registration( $provider, $redirect_to, $hybridauth_user_profile );
                            }
                            while( ! $shall_pass );
            }
            $hybridauth_user_email = $requested_user_email;

    I didn’t do extensive testing, but that worked. I prompts for the email address BEFORE trying to “filter” on it.

    Again, i’ll see about contributing that back to the original plugin.

    Thread Starter gmisura

    (@gmisura)

    I think the pull request
    https://github.com/miled/wordpress-social-login/pull/54
    Also includes this fix.

    As noted: I didn’t do a lot of testing yet.

    Thread Starter gmisura

    (@gmisura)

    I had to update the pull request with new code. Please check github

    https://github.com/miled/wordpress-social-login/pull/54

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bouncer Filter by email not working’ is closed to new replies.