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 ++++-- OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Communications') 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) diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index 4443de9..aaeca4b 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs @@ -89,6 +89,7 @@ namespace OpenSim.Region.Communications.OGS1 { serversInfo = servers_info; httpServer = httpServe; + //Respond to Grid Services requests httpServer.AddXmlRPCHandler("expect_user", ExpectUser); httpServer.AddXmlRPCHandler("logoff_user", LogOffUser); -- cgit v1.1