Bug fix for standalone HG login. VerifySession should be local for local users.

0.6.5-rc1
diva 2009-04-18 02:55:45 +00:00
parent bc02eab4b9
commit c41d2a1e3d
2 changed files with 11 additions and 1 deletions

View File

@ -316,6 +316,16 @@ namespace OpenSim.Region.Communications.Hypergrid
}
#endregion
public override bool VerifySession(UUID userID, UUID sessionID)
{
string url = string.Empty;
if ((m_localUserServices != null) && (!IsForeignUser(userID, out url)))
return m_localUserServices.VerifySession(userID, sessionID);
else
return base.VerifySession(userID, sessionID);
}
protected override string GetUserServerURL(UUID userID)
{
string serverURL = string.Empty;

View File

@ -847,7 +847,7 @@ namespace OpenSim.Region.Communications.OGS1
}
}
public bool VerifySession(UUID userID, UUID sessionID)
public virtual bool VerifySession(UUID userID, UUID sessionID)
{
m_log.DebugFormat("[OGS1 USER SERVICES]: Verifying user session for " + userID);
return AuthClient.VerifySession(GetUserServerURL(userID), userID, sessionID);