I have been trying your plugin and getting one small issue

I have been trying your plugin and getting one small issue.

When I try to login using social connect account like Google then this registers the user on its own. I do not want to allow users to register, is there anyway I can control this auto register thing?

Answers

  • Hi,
    You can add this to your theme's functions.php:
    add_action('oa_social_login_action_before_user_insert', 'abort', 10, 2); function abort() { wp_redirect(home_url()); exit; }So now, users will only be able to login with their social account if: they previously link their social account to their WP account, or if their social account's email addresses match that of an existing WP account (and that option is set in the Social Login settings).

    Hope this helps.

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.