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 02b5cc1..035980d 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -132,7 +132,8 @@ namespace OpenSim.Services.LLLoginService | |||
132 | Object[] args = new Object[] { config }; | 132 | Object[] args = new Object[] { config }; |
133 | m_UserAccountService = ServerUtils.LoadPlugin<IUserAccountService>(accountService, args); | 133 | m_UserAccountService = ServerUtils.LoadPlugin<IUserAccountService>(accountService, args); |
134 | m_GridUserService = ServerUtils.LoadPlugin<IGridUserService>(gridUserService, args); | 134 | m_GridUserService = ServerUtils.LoadPlugin<IGridUserService>(gridUserService, args); |
135 | m_AuthenticationService = ServerUtils.LoadPlugin<IAuthenticationService>(authService, args); | 135 | Object[] authArgs = new Object[] { config, m_UserAccountService }; |
136 | m_AuthenticationService = ServerUtils.LoadPlugin<IAuthenticationService>(authService, authArgs); | ||
136 | m_InventoryService = ServerUtils.LoadPlugin<IInventoryService>(invService, args); | 137 | m_InventoryService = ServerUtils.LoadPlugin<IInventoryService>(invService, args); |
137 | 138 | ||
138 | if (gridService != string.Empty) | 139 | if (gridService != string.Empty) |
@@ -275,6 +276,12 @@ namespace OpenSim.Services.LLLoginService | |||
275 | return LLFailedLoginResponse.UserProblem; | 276 | return LLFailedLoginResponse.UserProblem; |
276 | } | 277 | } |
277 | 278 | ||
279 | if (account.UserLevel < 0) | ||
280 | { | ||
281 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: Unverified account"); | ||
282 | return LLFailedLoginResponse.UnverifiedAccountProblem; | ||
283 | } | ||
284 | |||
278 | if (account.UserLevel < m_MinLoginLevel) | 285 | if (account.UserLevel < m_MinLoginLevel) |
279 | { | 286 | { |
280 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: login is blocked for user level {0}", account.UserLevel); | 287 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: login is blocked for user level {0}", account.UserLevel); |