Automated response: Login failure after expired session
attach_message is sometimes not yet defined when creating a new session. This is triggered when detecting geo-location mismatch between a user's IP address and the region they set on their profile.
This fix adds a check to skip attaching a message if the function has not yet been loaded.
Additionally, the geo-location check will also now happen (and show a warning for a mismatch) when editing profile settings. That way, the user knows and can easily fix it right there in their profile settings.
attach_message is sometimes not yet defined when creating a new session. This is triggered when detecting geo-location mismatch between a user's IP address and the region they set on their profile.
This fix adds a check to skip attaching a message if the function has not yet been loaded.
Additionally, the geo-location check will also now happen (and show a warning for a mismatch) when editing profile settings. That way, the user knows and can easily fix it right there in their profile settings.