Ideally, line 178 should be changed from
$user_id = wp_insert_user( $userdata );
if (get_option('users_can_register')) $user_id = wp_insert_user( $userdata );
So that the social login will respect the blog settings as to whether or not to allow user registration. Otherwise, it will make anyone an account regardless of if you want them to be able to or not.
- The topic ‘Doesn't respect registration option’ is closed to new replies.