diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Application/OpenSimBase.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 866ba9a..a6b91a3 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs | |||
@@ -462,9 +462,18 @@ namespace OpenSim | |||
462 | string password = MainConsole.Instance.PasswdPrompt("Password"); | 462 | string password = MainConsole.Instance.PasswdPrompt("Password"); |
463 | string email = MainConsole.Instance.CmdPrompt("Email", ""); | 463 | string email = MainConsole.Instance.CmdPrompt("Email", ""); |
464 | 464 | ||
465 | string rawPrincipalId = MainConsole.Instance.CmdPrompt("ID", UUID.Random().ToString()); | ||
466 | |||
467 | UUID principalId = UUID.Zero; | ||
468 | if (!UUID.TryParse(rawPrincipalId, out principalId)) | ||
469 | { | ||
470 | m_log.ErrorFormat("[OPENSIM]: ID {0} is not a valid UUID", rawPrincipalId); | ||
471 | return; | ||
472 | } | ||
473 | |||
465 | account | 474 | account |
466 | = ((UserAccountService)scene.UserAccountService).CreateUser( | 475 | = ((UserAccountService)scene.UserAccountService).CreateUser( |
467 | regionInfo.ScopeID, first, last, password, email); | 476 | regionInfo.ScopeID, principalId, first, last, password, email); |
468 | } | 477 | } |
469 | // } | 478 | // } |
470 | } | 479 | } |