WordPress.org

Ready to get started?Download WordPress

Plugin Directory

BuddyPress Instaban

BuddyPress Instaban allows site administrators to quickly remove problem members with a single click.

Other Notes

For integration with OneAll Social Login, you may perform a check with the user_token returned from the API response, like so:

// from oa-social-login/includes/communication.php:

/**
 * Handle the callback
 */
function oa_social_login_callback () {

    //User Data
    if (is_object ($social_data)) {
        $identity = $social_data->response->result->data->user->identity;
        $user_token = $social_data->response->result->data->user->user_token;

        // verify that user token isn't associated with an unsafe login
        if ( bp_instaban_is_user_token_unsafe( $user_token, 'oa_social_login_user_unsafe_tokens' ) ) {
            header($_SERVER['SERVER_PROTOCOL'] . ' 501 Not Implemented', true, 501); // throw a 501 error
            die();  
        }   
    }
}

In the above example, the server returns an HTTP 501 error. This effectively prevents the user from creating an account again with the same social network provider. You may choose to handle it differently. In the future, OneAll may provide a hook to enable this integration without modifying the plugin directly.

Requires: WP 3.0 / BP 1.3 or higher
Compatible up to: WP 3.5.1 / BP 1.7.2
Last Updated: 2013-6-20
Downloads: 672

Ratings

0 stars
0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.