diff options
author | UbitUmarov | 2018-01-21 16:40:58 +0000 |
---|---|---|
committer | UbitUmarov | 2018-01-21 16:40:58 +0000 |
commit | cb5a7246a26afd03f405c316520a72c0268fbdf2 (patch) | |
tree | 7a10ce77b03f069858c2c42b51cfed5195bac0f1 /OpenSim/Services/UserAccountService | |
parent | change version numbers back to 0.9.1.0 (diff) | |
download | opensim-SC-cb5a7246a26afd03f405c316520a72c0268fbdf2.zip opensim-SC-cb5a7246a26afd03f405c316520a72c0268fbdf2.tar.gz opensim-SC-cb5a7246a26afd03f405c316520a72c0268fbdf2.tar.bz2 opensim-SC-cb5a7246a26afd03f405c316520a72c0268fbdf2.tar.xz |
cosmetics (or not)
Diffstat (limited to 'OpenSim/Services/UserAccountService')
-rw-r--r-- | OpenSim/Services/UserAccountService/UserAccountService.cs | 39 |
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) |