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 495dc52..ed887d9 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) |
@@ -289,6 +290,12 @@ namespace OpenSim.Services.LLLoginService | |||
289 | return LLFailedLoginResponse.UserProblem; | 290 | return LLFailedLoginResponse.UserProblem; |
290 | } | 291 | } |
291 | 292 | ||
293 | if (account.UserLevel < 0) | ||
294 | { | ||
295 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: Unverified account"); | ||
296 | return LLFailedLoginResponse.UnverifiedAccountProblem; | ||
297 | } | ||
298 | |||
292 | if (account.UserLevel < m_MinLoginLevel) | 299 | if (account.UserLevel < m_MinLoginLevel) |
293 | { | 300 | { |
294 | m_log.InfoFormat( | 301 | m_log.InfoFormat( |