diff options
author | Diva Canto | 2012-12-09 15:31:50 -0800 |
---|---|---|
committer | Diva Canto | 2012-12-09 15:31:50 -0800 |
commit | 39b388a094aaf028e5f482885b98a2589c9434fe (patch) | |
tree | 59967bcfb070252f28cc344a6fd9ef9987d5dd61 /OpenSim/Data/MySQL | |
parent | UserManagementModule: search the local cache for names too. (diff) | |
parent | Restrict IPresenceData.VerifyAgent (diff) | |
download | opensim-SC_OLD-39b388a094aaf028e5f482885b98a2589c9434fe.zip opensim-SC_OLD-39b388a094aaf028e5f482885b98a2589c9434fe.tar.gz opensim-SC_OLD-39b388a094aaf028e5f482885b98a2589c9434fe.tar.bz2 opensim-SC_OLD-39b388a094aaf028e5f482885b98a2589c9434fe.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Data/MySQL')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLPresenceData.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Data/MySQL/MySQLPresenceData.cs b/OpenSim/Data/MySQL/MySQLPresenceData.cs index 577a71a..3f90639 100644 --- a/OpenSim/Data/MySQL/MySQLPresenceData.cs +++ b/OpenSim/Data/MySQL/MySQLPresenceData.cs | |||
@@ -96,15 +96,18 @@ namespace OpenSim.Data.MySQL | |||
96 | return true; | 96 | return true; |
97 | } | 97 | } |
98 | 98 | ||
99 | public PresenceData VerifyAgent(UUID secureSessionID) | 99 | public bool VerifyAgent(UUID agentId, UUID secureSessionID) |
100 | { | 100 | { |
101 | PresenceData[] ret = Get("SecureSessionID", | 101 | PresenceData[] ret = Get("SecureSessionID", |
102 | secureSessionID.ToString()); | 102 | secureSessionID.ToString()); |
103 | 103 | ||
104 | if (ret.Length == 0) | 104 | if (ret.Length == 0) |
105 | return null; | 105 | return false; |
106 | 106 | ||
107 | return ret[0]; | 107 | if(ret[0].UserID != agentId.ToString()) |
108 | return false; | ||
109 | |||
110 | return true; | ||
108 | } | 111 | } |
109 | } | 112 | } |
110 | } \ No newline at end of file | 113 | } \ No newline at end of file |