From 815278531ab578dc5c4fbfefb71c6b458c201571 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Sun, 7 Sep 2008 05:07:57 +0000 Subject: * Improve login failure handling. * Now it should properly inform the user and stop a login if a region server could not be contacted in order to expect a user (the last commit didn't actually quite work correctly) --- OpenSim/Region/Communications/Local/LocalLoginService.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Communications/Local') diff --git a/OpenSim/Region/Communications/Local/LocalLoginService.cs b/OpenSim/Region/Communications/Local/LocalLoginService.cs index 518ba09..7b93bfb 100644 --- a/OpenSim/Region/Communications/Local/LocalLoginService.cs +++ b/OpenSim/Region/Communications/Local/LocalLoginService.cs @@ -122,7 +122,7 @@ namespace OpenSim.Region.Communications.Local private Regex reURI = new Regex(@"^uri:(?[^&]+)&(?\d+)&(?\d+)&(?\d+)$"); - public override void CustomiseResponse(LoginResponse response, UserProfileData theUser, string startLocationRequest) + public override bool CustomiseResponse(LoginResponse response, UserProfileData theUser, string startLocationRequest) { ulong currentRegion = 0; @@ -145,7 +145,6 @@ namespace OpenSim.Region.Communications.Local { currentRegion = theUser.HomeRegion; response.StartLocation = "home"; - } else { @@ -264,7 +263,10 @@ namespace OpenSim.Region.Communications.Local else { m_log.Warn("[LOGIN]: Not found region " + currentRegion); + return false; } + + return true; } private LoginResponse.BuddyList ConvertFriendListItem(List LFL) -- cgit v1.1