aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/CommunicationsManager.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-09-15 18:23:36 +0000
committerJustin Clarke Casey2008-09-15 18:23:36 +0000
commitc2ee26399947be5e3c23ac3abc53f2ba907ff10f (patch)
tree563fa2cb85453ae6c3e65ab08ec1f6b307b9c5ff /OpenSim/Framework/Communications/CommunicationsManager.cs
parent* Complete refactoring accidentally left unfinished so that all server help r... (diff)
downloadopensim-SC-c2ee26399947be5e3c23ac3abc53f2ba907ff10f.zip
opensim-SC-c2ee26399947be5e3c23ac3abc53f2ba907ff10f.tar.gz
opensim-SC-c2ee26399947be5e3c23ac3abc53f2ba907ff10f.tar.bz2
opensim-SC-c2ee26399947be5e3c23ac3abc53f2ba907ff10f.tar.xz
* refactor: Break out IUserServiceAdmin out of IUserService since admin methods don't need to be implemented on Grid hosted region servers
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Communications/CommunicationsManager.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Framework/Communications/CommunicationsManager.cs b/OpenSim/Framework/Communications/CommunicationsManager.cs
index 1ac5fe4..27cdd35 100644
--- a/OpenSim/Framework/Communications/CommunicationsManager.cs
+++ b/OpenSim/Framework/Communications/CommunicationsManager.cs
@@ -98,6 +98,11 @@ namespace OpenSim.Framework.Communications
98 get { return m_networkServersInfo; } 98 get { return m_networkServersInfo; }
99 } 99 }
100 protected NetworkServersInfo m_networkServersInfo; 100 protected NetworkServersInfo m_networkServersInfo;
101
102 /// <summary>
103 /// Interface to administrative user service calls.
104 /// </summary>
105 protected IUserServiceAdmin m_userServiceAdmin;
101 106
102 /// <summary> 107 /// <summary>
103 /// Constructor 108 /// Constructor
@@ -243,7 +248,7 @@ namespace OpenSim.Framework.Communications
243 { 248 {
244 string md5PasswdHash = Util.Md5Hash(Util.Md5Hash(password) + ":" + String.Empty); 249 string md5PasswdHash = Util.Md5Hash(Util.Md5Hash(password) + ":" + String.Empty);
245 250
246 m_userService.AddUserProfile(firstName, lastName, md5PasswdHash, regX, regY); 251 m_userServiceAdmin.AddUserProfile(firstName, lastName, md5PasswdHash, regX, regY);
247 UserProfileData userProf = UserService.GetUserProfile(firstName, lastName); 252 UserProfileData userProf = UserService.GetUserProfile(firstName, lastName);
248 if (userProf == null) 253 if (userProf == null)
249 { 254 {
@@ -266,7 +271,7 @@ namespace OpenSim.Framework.Communications
266 /// <returns>true if the update was successful, false otherwise</returns> 271 /// <returns>true if the update was successful, false otherwise</returns>
267 public bool ResetUserPassword(string firstName, string lastName, string newPassword) 272 public bool ResetUserPassword(string firstName, string lastName, string newPassword)
268 { 273 {
269 return m_userService.ResetUserPassword(firstName, lastName, newPassword); 274 return m_userServiceAdmin.ResetUserPassword(firstName, lastName, newPassword);
270 } 275 }
271 276
272 #region Friend Methods 277 #region Friend Methods