#6274 - Better(?) fix for bug 6246: Login failure after expired session

Identifier #6274
Issue type Trivial issue (does not break functionality)
Title Better(?) fix for bug 6246: Login failure after expired session
Status Open
Tags

Roadmap: v11 (custom)

Handling member Deleted
Version 11 beta8
Addon core
Description I also ran into the login failure and traced the issue to an out-of-place 'require' code line in sources\global2.php.

In v11 branch, sources\globals2.php, Line 474:

require_code('site'); // This powers the site (top level page generation)

should above the handle_logins() call.

This code:

if ((!$MICRO_AJAX_BOOTUP) && (!$MICRO_BOOTUP)) {
// Before anything gets outputted
require_code('users');
handle_logins();

require_code('site'); // This powers the site (top level page generation)
}

should be:

if ((!$MICRO_AJAX_BOOTUP) && (!$MICRO_BOOTUP)) {
// Before anything gets outputted
require_code('users');
require_code('site'); // This powers the site (top level page generation)
handle_logins();
}
Steps to reproduce

Additional information I confirm I searched the tracker for an existing issue.
Related to

#6246 - Login failure after expired session

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated