diff options
Diffstat (limited to 'OpenSim/Region')
-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 77f38ed..3e58287 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs | |||
@@ -540,9 +540,18 @@ namespace OpenSim | |||
540 | string password = MainConsole.Instance.PasswdPrompt("Password"); | 540 | string password = MainConsole.Instance.PasswdPrompt("Password"); |
541 | string email = MainConsole.Instance.CmdPrompt("Email", ""); | 541 | string email = MainConsole.Instance.CmdPrompt("Email", ""); |
542 | 542 | ||
543 | string rawPrincipalId = MainConsole.Instance.CmdPrompt("ID", UUID.Random().ToString()); | ||
544 | |||
545 | UUID principalId = UUID.Zero; | ||
546 | if (!UUID.TryParse(rawPrincipalId, out principalId)) | ||
547 | { | ||
548 | m_log.ErrorFormat("[OPENSIM]: ID {0} is not a valid UUID", rawPrincipalId); | ||
549 | return; | ||
550 | } | ||
551 | |||
543 | account | 552 | account |
544 | = ((UserAccountService)scene.UserAccountService).CreateUser( | 553 | = ((UserAccountService)scene.UserAccountService).CreateUser( |
545 | regionInfo.ScopeID, first, last, password, email); | 554 | regionInfo.ScopeID, principalId, first, last, password, email); |
546 | } | 555 | } |
547 | // } | 556 | // } |
548 | } | 557 | } |