Skip to content

vBulletin 5.5 Login problem #5

Description

@celestora

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions