diff options
Diffstat (limited to 'OpenSim/Services/LLLoginService/LLLoginService.cs')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginService.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index 9acba11..06e05a9 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -140,7 +140,8 @@ namespace OpenSim.Services.LLLoginService | |||
140 | Object[] args = new Object[] { config }; | 140 | Object[] args = new Object[] { config }; |
141 | m_UserAccountService = ServerUtils.LoadPlugin<IUserAccountService>(accountService, args); | 141 | m_UserAccountService = ServerUtils.LoadPlugin<IUserAccountService>(accountService, args); |
142 | m_GridUserService = ServerUtils.LoadPlugin<IGridUserService>(gridUserService, args); | 142 | m_GridUserService = ServerUtils.LoadPlugin<IGridUserService>(gridUserService, args); |
143 | m_AuthenticationService = ServerUtils.LoadPlugin<IAuthenticationService>(authService, args); | 143 | Object[] authArgs = new Object[] { config, m_UserAccountService }; |
144 | m_AuthenticationService = ServerUtils.LoadPlugin<IAuthenticationService>(authService, authArgs); | ||
144 | m_InventoryService = ServerUtils.LoadPlugin<IInventoryService>(invService, args); | 145 | m_InventoryService = ServerUtils.LoadPlugin<IInventoryService>(invService, args); |
145 | 146 | ||
146 | if (gridService != string.Empty) | 147 | if (gridService != string.Empty) |
@@ -284,6 +285,12 @@ namespace OpenSim.Services.LLLoginService | |||
284 | return LLFailedLoginResponse.UserProblem; | 285 | return LLFailedLoginResponse.UserProblem; |
285 | } | 286 | } |
286 | 287 | ||
288 | if (account.UserLevel < 0) | ||
289 | { | ||
290 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: Unverified account"); | ||
291 | return LLFailedLoginResponse.UnverifiedAccountProblem; | ||
292 | } | ||
293 | |||
287 | if (account.UserLevel < m_MinLoginLevel) | 294 | if (account.UserLevel < m_MinLoginLevel) |
288 | { | 295 | { |
289 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: login is blocked for user level {0}", account.UserLevel); | 296 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: login is blocked for user level {0}", account.UserLevel); |