aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/LLLoginService/LLLoginService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/LLLoginService/LLLoginService.cs')
-rw-r--r--OpenSim/Services/LLLoginService/LLLoginService.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs
index 2ca2d15..ffed15e 100644
--- a/OpenSim/Services/LLLoginService/LLLoginService.cs
+++ b/OpenSim/Services/LLLoginService/LLLoginService.cs
@@ -119,7 +119,8 @@ namespace OpenSim.Services.LLLoginService
119 Object[] args = new Object[] { config }; 119 Object[] args = new Object[] { config };
120 m_UserAccountService = ServerUtils.LoadPlugin<IUserAccountService>(accountService, args); 120 m_UserAccountService = ServerUtils.LoadPlugin<IUserAccountService>(accountService, args);
121 m_GridUserService = ServerUtils.LoadPlugin<IGridUserService>(gridUserService, args); 121 m_GridUserService = ServerUtils.LoadPlugin<IGridUserService>(gridUserService, args);
122 m_AuthenticationService = ServerUtils.LoadPlugin<IAuthenticationService>(authService, args); 122 Object[] authArgs = new Object[] { config, m_UserAccountService };
123 m_AuthenticationService = ServerUtils.LoadPlugin<IAuthenticationService>(authService, authArgs);
123 m_InventoryService = ServerUtils.LoadPlugin<IInventoryService>(invService, args); 124 m_InventoryService = ServerUtils.LoadPlugin<IInventoryService>(invService, args);
124 125
125 if (gridService != string.Empty) 126 if (gridService != string.Empty)
@@ -262,6 +263,12 @@ namespace OpenSim.Services.LLLoginService
262 return LLFailedLoginResponse.UserProblem; 263 return LLFailedLoginResponse.UserProblem;
263 } 264 }
264 265
266 if (account.UserLevel < 0)
267 {
268 m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: Unverified account");
269 return LLFailedLoginResponse.UnverifiedAccountProblem;
270 }
271
265 if (account.UserLevel < m_MinLoginLevel) 272 if (account.UserLevel < m_MinLoginLevel)
266 { 273 {
267 m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: login is blocked for user level {0}", account.UserLevel); 274 m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: login is blocked for user level {0}", account.UserLevel);