aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MSSQL
diff options
context:
space:
mode:
authorMelanie2012-12-09 21:27:32 +0000
committerMelanie2012-12-09 21:27:32 +0000
commitf30d519bcc1e68deee0d5b3671766ceb39a37018 (patch)
treee082cd09c815191377d840b1c2936f5e558e45b0 /OpenSim/Data/MSSQL
parentMerge branch 'master' into careminster (diff)
parentRestrict IPresenceData.VerifyAgent (diff)
downloadopensim-SC-f30d519bcc1e68deee0d5b3671766ceb39a37018.zip
opensim-SC-f30d519bcc1e68deee0d5b3671766ceb39a37018.tar.gz
opensim-SC-f30d519bcc1e68deee0d5b3671766ceb39a37018.tar.bz2
opensim-SC-f30d519bcc1e68deee0d5b3671766ceb39a37018.tar.xz
Merge branch 'master' into careminster
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MSSQL/MSSQLPresenceData.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLPresenceData.cs b/OpenSim/Data/MSSQL/MSSQLPresenceData.cs
index e7b3d9c..deff2ed 100644
--- a/OpenSim/Data/MSSQL/MSSQLPresenceData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLPresenceData.cs
@@ -100,5 +100,18 @@ namespace OpenSim.Data.MSSQL
100 return true; 100 return true;
101 } 101 }
102 102
103 public bool VerifyAgent(UUID agentId, UUID secureSessionID)
104 {
105 PresenceData[] ret = Get("SecureSessionID",
106 secureSessionID.ToString());
107
108 if (ret.Length == 0)
109 return false;
110
111 if(ret[0].UserID != agentId.ToString())
112 return false;
113
114 return true;
115 }
103 } 116 }
104} 117}