aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server
diff options
context:
space:
mode:
authorMelanie Thielker2016-08-20 22:41:53 +0100
committerMelanie Thielker2016-08-20 22:42:32 +0100
commit82244cca68328db002e2c00a693d64781737cf7c (patch)
tree4c86d53a2d6d5eb3dde70601ba0821eaf7110bf1 /OpenSim/Server
parentfix GetLandData(...) in land connectors not suporting large regions (diff)
downloadopensim-SC_OLD-82244cca68328db002e2c00a693d64781737cf7c.zip
opensim-SC_OLD-82244cca68328db002e2c00a693d64781737cf7c.tar.gz
opensim-SC_OLD-82244cca68328db002e2c00a693d64781737cf7c.tar.bz2
opensim-SC_OLD-82244cca68328db002e2c00a693d64781737cf7c.tar.xz
Allow creation of user appearance from a model avatar. Thank you,
Cinder, for this patch. Signed-off-by: Melanie Thielker <melanie@t-data.com>
Diffstat (limited to 'OpenSim/Server')
-rw-r--r--OpenSim/Server/Handlers/UserAccounts/UserAccountServerPostHandler.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Server/Handlers/UserAccounts/UserAccountServerPostHandler.cs b/OpenSim/Server/Handlers/UserAccounts/UserAccountServerPostHandler.cs
index 237ffc7..b22c4cc 100644
--- a/OpenSim/Server/Handlers/UserAccounts/UserAccountServerPostHandler.cs
+++ b/OpenSim/Server/Handlers/UserAccounts/UserAccountServerPostHandler.cs
@@ -328,12 +328,16 @@ namespace OpenSim.Server.Handlers.UserAccounts
328 if (request.ContainsKey("Email")) 328 if (request.ContainsKey("Email"))
329 email = request["Email"].ToString(); 329 email = request["Email"].ToString();
330 330
331 string model = "";
332 if (request.ContainsKey("Model"))
333 model = request["Model"].ToString();
334
331 UserAccount createdUserAccount = null; 335 UserAccount createdUserAccount = null;
332 336
333 if (m_UserAccountService is UserAccountService) 337 if (m_UserAccountService is UserAccountService)
334 createdUserAccount 338 createdUserAccount
335 = ((UserAccountService)m_UserAccountService).CreateUser( 339 = ((UserAccountService)m_UserAccountService).CreateUser(
336 scopeID, principalID, firstName, lastName, password, email); 340 scopeID, principalID, firstName, lastName, password, email, model);
337 341
338 if (createdUserAccount == null) 342 if (createdUserAccount == null)
339 return FailureResult(); 343 return FailureResult();
@@ -393,4 +397,4 @@ namespace OpenSim.Server.Handlers.UserAccounts
393 return Util.UTF8NoBomEncoding.GetBytes(xmlString); 397 return Util.UTF8NoBomEncoding.GetBytes(xmlString);
394 } 398 }
395 } 399 }
396} \ No newline at end of file 400}