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

This is a spacer post for a website comment topic. The content this topic relates to: #6274 - Better(?) fix for bug 6246: Login failure after expired session
I'm hesitant to say this is the true fix; handle_logins is in the users file, not the site file. And when site is loaded, it does some pre-processing of Comcode pages and prepares output which we might not want to do before handling logins.

I need some more info. What is the "login" issue? Are you simply getting logged out? Is an error occurring which then logs you out? Are you still getting an undefined function attach_message error?
You are right. While moving the line fixes the error. It's not the right fix.
I'll leave the issue open for a while in case we come up with a better fix. ATM the only fix I see working is what I already did; simply not warning of geolocation mismatch if attach_message is not defined. I think this is fine. The warning doesn't indicate any problem with the software but rather with the user's profile. So it's okay if momentarily the warning doesn't display. The site will still function normally.

The purpose of the warning goes back to legal compliance. Region enforcement is necessary to properly enforce age requirements for joining a site (content region enforcement also exists to hide content by region). But we must know a user's region to do that. Law says we should prioritize what a user specifies as their region over what their IP address reveals about their region, so we do that. But the warning serves as a reminder when their IP address region does not match what is on their profile.
0 guests and 0 members have recently viewed this.