mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
Change the auth token to be the user's sessionid.
This commit is contained in:
@@ -3452,7 +3452,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
regions.Remove(RegionInfo.RegionHandle);
|
||||
|
||||
// This ends up being done asynchronously so that a logout isn't held up where there are many present but unresponsive neighbours.
|
||||
m_sceneGridService.SendCloseChildAgentConnections(agentID, acd.Id0 != null ? Util.Md5Hash(acd.Id0) : string.Empty, regions);
|
||||
m_sceneGridService.SendCloseChildAgentConnections(agentID, acd.SessionID.ToString(), regions);
|
||||
}
|
||||
|
||||
m_eventManager.TriggerClientClosed(agentID, this);
|
||||
@@ -4290,7 +4290,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
// Check that the auth_token is valid
|
||||
AgentCircuitData acd = AuthenticateHandler.GetAgentCircuitData(agentID);
|
||||
if (acd != null && Util.Md5Hash(acd.Id0) == auth_token)
|
||||
if (acd != null && acd.SessionID.ToString() == auth_token)
|
||||
return IncomingCloseAgent(agentID, force);
|
||||
else
|
||||
m_log.ErrorFormat("[SCENE]: Request to close agent {0} with invalid authorization token {1}", agentID, auth_token);
|
||||
|
||||
@@ -3168,7 +3168,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
AgentCircuitData acd = Scene.AuthenticateHandler.GetAgentCircuitData(UUID);
|
||||
string auth = string.Empty;
|
||||
if (acd != null)
|
||||
auth = Util.Md5Hash(acd.Id0);
|
||||
auth = acd.SessionID.ToString();
|
||||
m_scene.SceneGridService.SendCloseChildAgentConnections(ControllingClient.AgentId, auth, byebyeRegions);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user