Restrict IPresenceData.VerifyAgent

Restrict IPresenceData.VerifyAgent to only return bool result
This commit is contained in:
BlueWall
2012-12-09 15:08:32 -05:00
parent a37040d07a
commit 8efae93b51
4 changed files with 17 additions and 17 deletions

View File

@@ -96,15 +96,18 @@ namespace OpenSim.Data.MySQL
return true;
}
public PresenceData VerifyAgent(UUID secureSessionID)
public bool VerifyAgent(UUID agentId, UUID secureSessionID)
{
PresenceData[] ret = Get("SecureSessionID",
secureSessionID.ToString());
if (ret.Length == 0)
return null;
return false;
return ret[0];
if(ret[0].UserID != agentId.ToString())
return false;
return true;
}
}
}