WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Social Login] Login only if registered

[Resolved] [Plugin: Social Login] Login only if registered

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Claude

    @claudeschlesser

    Hello,

    Please accept my apologies for the delay in responding to your question. We are currently working on this feature and it should be available in one of the next versions.

    Regards,

    Great plugin, except this missing feature prevents us from using it. Please add it soon.

    As a work around making the following changes seems to work:

    Modify <wp-plugins>/oa-social-login/includes/communication.php

    CHANGE
    171: //New User
    172: if (!is_numeric ($user_id))
    TO
    171: //New User
    172: if (!is_numeric ($user_id) AND get_option('users_can_register', 0) == 1)
    
    ADD
    242: else
    243: {
    244:         $redirect_to = site_url();
    245:         $redirect_to .= "/wp-login.php?registration=disabled"; // Redirect unregistered users
    246:         wp_safe_redirect ($redirect_to);
    247:         exit ();
    248: }

    Actually make line 242 the following instead of else
    242: else if (!is_numeric ($user_id))

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: Social Login] Login only if registered’ is closed to new replies.