Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vBulletin 5.5 Login problem #5

Open
celestora opened this issue Apr 5, 2019 · 0 comments
Open

vBulletin 5.5 Login problem #5

celestora opened this issue Apr 5, 2019 · 0 comments

Comments

@celestora
Copy link

celestora commented Apr 5, 2019

Plugin doesn't seem to login users after authorization. I couldn't figure out what the problem is exactly, but probably something seems to destroy the session before callback.php performs a redirect.
There is a workaround to stop execution and perform redirect just before end of block (somwhere around line 198):

$result = vB_User::processNewLogin(array(
    'userid' => $userid
));

// Redirect
if (!empty($arguments['origin']))
{
    // Security check
    if (parse_url($arguments['origin'], PHP_URL_HOST) == parse_url($vbulletin->options['frontendurl'], PHP_URL_HOST))
    {
        $redirect_url = $arguments['origin'];
    }
}

# workaround
setcookie("sessionhash", $result["sessionhash"], time()+60*60*24*14, "/", NULL, true, true);
exec_header_redirect($redirect_url);
die;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant