mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Allow creation of user appearance from a model avatar. Thank you,
Cinder, for this patch. Signed-off-by: Melanie Thielker <melanie@t-data.com>
This commit is contained in:
@@ -328,12 +328,16 @@ namespace OpenSim.Server.Handlers.UserAccounts
|
||||
if (request.ContainsKey("Email"))
|
||||
email = request["Email"].ToString();
|
||||
|
||||
string model = "";
|
||||
if (request.ContainsKey("Model"))
|
||||
model = request["Model"].ToString();
|
||||
|
||||
UserAccount createdUserAccount = null;
|
||||
|
||||
if (m_UserAccountService is UserAccountService)
|
||||
createdUserAccount
|
||||
= ((UserAccountService)m_UserAccountService).CreateUser(
|
||||
scopeID, principalID, firstName, lastName, password, email);
|
||||
scopeID, principalID, firstName, lastName, password, email, model);
|
||||
|
||||
if (createdUserAccount == null)
|
||||
return FailureResult();
|
||||
@@ -393,4 +397,4 @@ namespace OpenSim.Server.Handlers.UserAccounts
|
||||
return Util.UTF8NoBomEncoding.GetBytes(xmlString);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user