When creating a new user on the comand line, give the option of allowing a UUID to be specified to override the randomly generated one.

This can be useful in some migration cases where recreating user accounts with known IDs will preserve region scene object ownership.
This commit is contained in:
Justin Clark-Casey (justincc)
2011-10-04 23:48:35 +01:00
parent 8a216dc1cc
commit b907a66f39
4 changed files with 28 additions and 8 deletions

View File

@@ -3115,7 +3115,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
UserAccount account = userAccountService.GetUserAccount(scopeID, firstName, lastName);
if (null == account)
{
account = new UserAccount(scopeID, firstName, lastName, email);
account = new UserAccount(scopeID, UUID.Random(), firstName, lastName, email);
if (account.ServiceURLs == null || (account.ServiceURLs != null && account.ServiceURLs.Count == 0))
{
account.ServiceURLs = new Dictionary<string, object>();