diff options
author | Teravus Ovares | 2008-09-25 08:42:48 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-09-25 08:42:48 +0000 |
commit | 17be1b736d438273aa634943629b7f892503744d (patch) | |
tree | 5049b36a26897be3fc186754659c9c5e0b5f1423 /OpenSim/Framework/Communications/CommunicationsManager.cs | |
parent | update HttpServer.dll to r15903 (diff) | |
download | opensim-SC-17be1b736d438273aa634943629b7f892503744d.zip opensim-SC-17be1b736d438273aa634943629b7f892503744d.tar.gz opensim-SC-17be1b736d438273aa634943629b7f892503744d.tar.bz2 opensim-SC-17be1b736d438273aa634943629b7f892503744d.tar.xz |
* In Standalone, add a persistant account for the OGP user.
* Gridmode, this has no effect at all.
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 |