WordPress.org

Ready to get started?Download WordPress

Forums

Social Login
[resolved] Login only if registered (4 posts)

  1. fcastro72
    Member
    Posted 2 years ago #

    Hello i have a protected site (using custom login plugin).
    I would like to make users login but only if they already have an account in my wordpress.
    Instead the plugin right now if a user doesn't have an account creates a new account and link the social credentials to that account.
    Is it possible to disable new user registration in any way?
    Thank you

    http://wordpress.org/extend/plugins/oa-social-login/

  2. Claude
    Member
    Plugin Author

    Posted 2 years ago #

    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,

  3. matt.weston
    Member
    Posted 2 years ago #

    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: }
  4. matt.weston
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic