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 2b15896..e7dd15e 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -127,7 +127,8 @@ namespace OpenSim.Services.LLLoginService | |||
127 | Object[] args = new Object[] { config }; | 127 | Object[] args = new Object[] { config }; |
128 | m_UserAccountService = ServerUtils.LoadPlugin<IUserAccountService>(accountService, args); | 128 | m_UserAccountService = ServerUtils.LoadPlugin<IUserAccountService>(accountService, args); |
129 | m_GridUserService = ServerUtils.LoadPlugin<IGridUserService>(gridUserService, args); | 129 | m_GridUserService = ServerUtils.LoadPlugin<IGridUserService>(gridUserService, args); |
130 | m_AuthenticationService = ServerUtils.LoadPlugin<IAuthenticationService>(authService, args); | 130 | Object[] authArgs = new Object[] { config, m_UserAccountService }; |
131 | m_AuthenticationService = ServerUtils.LoadPlugin<IAuthenticationService>(authService, authArgs); | ||
131 | m_InventoryService = ServerUtils.LoadPlugin<IInventoryService>(invService, args); | 132 | m_InventoryService = ServerUtils.LoadPlugin<IInventoryService>(invService, args); |
132 | 133 | ||
133 | if (gridService != string.Empty) | 134 | if (gridService != string.Empty) |
@@ -270,6 +271,12 @@ namespace OpenSim.Services.LLLoginService | |||
270 | return LLFailedLoginResponse.UserProblem; | 271 | return LLFailedLoginResponse.UserProblem; |
271 | } | 272 | } |
272 | 273 | ||
274 | if (account.UserLevel < 0) | ||
275 | { | ||
276 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: Unverified account"); | ||
277 | return LLFailedLoginResponse.UnverifiedAccountProblem; | ||
278 | } | ||
279 | |||
273 | if (account.UserLevel < m_MinLoginLevel) | 280 | if (account.UserLevel < m_MinLoginLevel) |
274 | { | 281 | { |
275 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: login is blocked for user level {0}", account.UserLevel); | 282 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: login is blocked for user level {0}", account.UserLevel); |