aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/UserAccountService
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/UserAccountService')
-rw-r--r--OpenSim/Services/UserAccountService/UserAccountService.cs39
1 files changed, 19 insertions, 20 deletions
diff --git a/OpenSim/Services/UserAccountService/UserAccountService.cs b/OpenSim/Services/UserAccountService/UserAccountService.cs
index 48929ee..5561287 100644
--- a/OpenSim/Services/UserAccountService/UserAccountService.cs
+++ b/OpenSim/Services/UserAccountService/UserAccountService.cs
@@ -86,30 +86,29 @@ namespace OpenSim.Services.UserAccountService
86 86
87 m_CreateDefaultAvatarEntries = userConfig.GetBoolean("CreateDefaultAvatarEntries", false); 87 m_CreateDefaultAvatarEntries = userConfig.GetBoolean("CreateDefaultAvatarEntries", false);
88 88
89 // create a system grid god account
90 UserAccount ggod = GetUserAccount(UUID.Zero, UUID_GRID_GOD);
91 if(ggod == null)
92 {
93 UserAccountData d = new UserAccountData();
94
95 d.FirstName = "GRID";
96 d.LastName = "SERVICES";
97 d.PrincipalID = UUID_GRID_GOD;
98 d.ScopeID = UUID.Zero;
99 d.Data = new Dictionary<string, string>();
100 d.Data["Email"] = string.Empty;
101 d.Data["Created"] = Util.UnixTimeSinceEpoch().ToString();
102 d.Data["UserLevel"] = "240";
103 d.Data["UserFlags"] = "0";
104 d.Data["ServiceURLs"] = string.Empty;
105
106 m_Database.Store(d);
107 }
108
109 if (m_RootInstance == null) 89 if (m_RootInstance == null)
110 { 90 {
111 m_RootInstance = this; 91 m_RootInstance = this;
112 92
93 // create a system grid god account
94 UserAccount ggod = GetUserAccount(UUID.Zero, UUID_GRID_GOD);
95 if(ggod == null)
96 {
97 UserAccountData d = new UserAccountData();
98 d.FirstName = "GRID";
99 d.LastName = "SERVICES";
100 d.PrincipalID = UUID_GRID_GOD;
101 d.ScopeID = UUID.Zero;
102 d.Data = new Dictionary<string, string>();
103 d.Data["Email"] = string.Empty;
104 d.Data["Created"] = Util.UnixTimeSinceEpoch().ToString();
105 d.Data["UserLevel"] = "240";
106 d.Data["UserFlags"] = "0";
107 d.Data["ServiceURLs"] = string.Empty;
108
109 m_Database.Store(d);
110 }
111
113 // In case there are several instances of this class in the same process, 112 // In case there are several instances of this class in the same process,
114 // the console commands are only registered for the root instance 113 // the console commands are only registered for the root instance
115 if (MainConsole.Instance != null) 114 if (MainConsole.Instance != null)