Shade- / MyFacebook-Connect

A plugin to integrate Facebook with MyBB, letting users login and register through Facebook.
27 stars 24 forks source link

Login link does not work with Force Users to Login option enabled #49

Closed marcandrews closed 9 years ago

marcandrews commented 9 years ago

When the Force Users to Login option is enabled the, myfbconnect.php?action=login login link does not work.

Shade- commented 9 years ago

There is not such option you mentioned. Are you talking about the One-click registration option instead? As far as I know, version 2.3 is running fine with that option enabled.

lf-schmidt commented 9 years ago

Hi, he means the MyBB general setting in the ACP (Board Settings/Login and Registration Options/Force Users to Login).

Shade- commented 9 years ago

Unfortunately, MyBB does not come with an easy access to the array which includes allowed pages when that option is active. It can be done with core editing, but I don't feel it necessary to add it to MFC's core.

You can still adjust your own MyBB copy by editing global.php, line 958, add to the $force_bypass array the required patterns. It should look like this:

$force_bypass = array(
    'member.php' => array(
        'login',
        'do_login',
        'logout',
        'register',
        'do_register',
        'lostpw',
        'do_lostpw',
        'activate',
        'resendactivation',
        'do_resendactivation',
        'resetpassword',
    ),
    'captcha.php',
    'myfbconnect.php' => array(
        'login',
        'do_login',
        'register'
    )
);