diff options
author | Melanie | 2012-12-09 21:27:32 +0000 |
---|---|---|
committer | Melanie | 2012-12-09 21:27:32 +0000 |
commit | f30d519bcc1e68deee0d5b3671766ceb39a37018 (patch) | |
tree | e082cd09c815191377d840b1c2936f5e558e45b0 /OpenSim/Data/MySQL | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Restrict IPresenceData.VerifyAgent (diff) | |
download | opensim-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 'OpenSim/Data/MySQL')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLPresenceData.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/MySQLPresenceData.cs b/OpenSim/Data/MySQL/MySQLPresenceData.cs index 7808060..3f90639 100644 --- a/OpenSim/Data/MySQL/MySQLPresenceData.cs +++ b/OpenSim/Data/MySQL/MySQLPresenceData.cs | |||
@@ -95,5 +95,19 @@ namespace OpenSim.Data.MySQL | |||
95 | 95 | ||
96 | return true; | 96 | return true; |
97 | } | 97 | } |
98 | |||
99 | public bool VerifyAgent(UUID agentId, UUID secureSessionID) | ||
100 | { | ||
101 | PresenceData[] ret = Get("SecureSessionID", | ||
102 | secureSessionID.ToString()); | ||
103 | |||
104 | if (ret.Length == 0) | ||
105 | return false; | ||
106 | |||
107 | if(ret[0].UserID != agentId.ToString()) | ||
108 | return false; | ||
109 | |||
110 | return true; | ||
111 | } | ||
98 | } | 112 | } |
99 | } \ No newline at end of file | 113 | } \ No newline at end of file |