diff options
Diffstat (limited to 'OpenSim/Services/LLLoginService')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginResponse.cs | 6 | ||||
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginService.cs | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs index 0da1715..011cad8 100644 --- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs +++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs | |||
@@ -56,6 +56,7 @@ namespace OpenSim.Services.LLLoginService | |||
56 | public static LLFailedLoginResponse InventoryProblem; | 56 | public static LLFailedLoginResponse InventoryProblem; |
57 | public static LLFailedLoginResponse DeadRegionProblem; | 57 | public static LLFailedLoginResponse DeadRegionProblem; |
58 | public static LLFailedLoginResponse LoginBlockedProblem; | 58 | public static LLFailedLoginResponse LoginBlockedProblem; |
59 | public static LLFailedLoginResponse UnverifiedAccountProblem; | ||
59 | public static LLFailedLoginResponse AlreadyLoggedInProblem; | 60 | public static LLFailedLoginResponse AlreadyLoggedInProblem; |
60 | public static LLFailedLoginResponse InternalError; | 61 | public static LLFailedLoginResponse InternalError; |
61 | 62 | ||
@@ -76,6 +77,10 @@ namespace OpenSim.Services.LLLoginService | |||
76 | LoginBlockedProblem = new LLFailedLoginResponse("presence", | 77 | LoginBlockedProblem = new LLFailedLoginResponse("presence", |
77 | "Logins are currently restricted. Please try again later.", | 78 | "Logins are currently restricted. Please try again later.", |
78 | "false"); | 79 | "false"); |
80 | UnverifiedAccountProblem = new LLFailedLoginResponse("presence", | ||
81 | "Your account has not yet been verified. Please check " + | ||
82 | "your email and click the provided link.", | ||
83 | "false"); | ||
79 | AlreadyLoggedInProblem = new LLFailedLoginResponse("presence", | 84 | AlreadyLoggedInProblem = new LLFailedLoginResponse("presence", |
80 | "You appear to be already logged in. " + | 85 | "You appear to be already logged in. " + |
81 | "If this is not the case please wait for your session to timeout. " + | 86 | "If this is not the case please wait for your session to timeout. " + |
@@ -325,6 +330,7 @@ namespace OpenSim.Services.LLLoginService | |||
325 | private void FillOutRegionData(GridRegion destination) | 330 | private void FillOutRegionData(GridRegion destination) |
326 | { | 331 | { |
327 | IPEndPoint endPoint = destination.ExternalEndPoint; | 332 | IPEndPoint endPoint = destination.ExternalEndPoint; |
333 | if (endPoint == null) return; | ||
328 | SimAddress = endPoint.Address.ToString(); | 334 | SimAddress = endPoint.Address.ToString(); |
329 | SimPort = (uint)endPoint.Port; | 335 | SimPort = (uint)endPoint.Port; |
330 | RegionX = (uint)destination.RegionLocX; | 336 | RegionX = (uint)destination.RegionLocX; |
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index b740297..09be4a2 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -227,6 +227,12 @@ namespace OpenSim.Services.LLLoginService | |||
227 | return LLFailedLoginResponse.UserProblem; | 227 | return LLFailedLoginResponse.UserProblem; |
228 | } | 228 | } |
229 | 229 | ||
230 | if (account.UserLevel < 0) | ||
231 | { | ||
232 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: Unverified account"); | ||
233 | return LLFailedLoginResponse.UnverifiedAccountProblem; | ||
234 | } | ||
235 | |||
230 | if (account.UserLevel < m_MinLoginLevel) | 236 | if (account.UserLevel < m_MinLoginLevel) |
231 | { | 237 | { |
232 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: login is blocked for user level {0}", account.UserLevel); | 238 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: login is blocked for user level {0}", account.UserLevel); |