diff options
Diffstat (limited to 'OpenSim/Framework/Communications/CommunicationsManager.cs')
-rw-r--r-- | OpenSim/Framework/Communications/CommunicationsManager.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/CommunicationsManager.cs b/OpenSim/Framework/Communications/CommunicationsManager.cs index 198bd83..1bf8c05 100644 --- a/OpenSim/Framework/Communications/CommunicationsManager.cs +++ b/OpenSim/Framework/Communications/CommunicationsManager.cs | |||
@@ -261,6 +261,24 @@ namespace OpenSim.Framework.Communications | |||
261 | return userProf.ID; | 261 | return userProf.ID; |
262 | } | 262 | } |
263 | } | 263 | } |
264 | |||
265 | public UUID AddUser(string firstName, string lastName, string password, uint regX, uint regY, UUID SetUUID) | ||
266 | { | ||
267 | string md5PasswdHash = Util.Md5Hash(Util.Md5Hash(password) + ":" + String.Empty); | ||
268 | |||
269 | m_userServiceAdmin.AddUserProfile(firstName, lastName, md5PasswdHash, regX, regY, SetUUID); | ||
270 | UserProfileData userProf = UserService.GetUserProfile(firstName, lastName); | ||
271 | if (userProf == null) | ||
272 | { | ||
273 | return UUID.Zero; | ||
274 | } | ||
275 | else | ||
276 | { | ||
277 | InterServiceInventoryService.CreateNewUserInventory(userProf.ID); | ||
278 | m_log.Info("[USERS]: Created new inventory set for " + firstName + " " + lastName); | ||
279 | return userProf.ID; | ||
280 | } | ||
281 | } | ||
264 | 282 | ||
265 | /// <summary> | 283 | /// <summary> |
266 | /// Reset a user password | 284 | /// Reset a user password |