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