diff options
Diffstat (limited to '')
-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 54d53fb..6a2cbeb 100644 --- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs +++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs | |||
@@ -57,6 +57,7 @@ namespace OpenSim.Services.LLLoginService | |||
57 | public static LLFailedLoginResponse InventoryProblem; | 57 | public static LLFailedLoginResponse InventoryProblem; |
58 | public static LLFailedLoginResponse DeadRegionProblem; | 58 | public static LLFailedLoginResponse DeadRegionProblem; |
59 | public static LLFailedLoginResponse LoginBlockedProblem; | 59 | public static LLFailedLoginResponse LoginBlockedProblem; |
60 | public static LLFailedLoginResponse UnverifiedAccountProblem; | ||
60 | public static LLFailedLoginResponse AlreadyLoggedInProblem; | 61 | public static LLFailedLoginResponse AlreadyLoggedInProblem; |
61 | public static LLFailedLoginResponse InternalError; | 62 | public static LLFailedLoginResponse InternalError; |
62 | 63 | ||
@@ -80,6 +81,10 @@ namespace OpenSim.Services.LLLoginService | |||
80 | LoginBlockedProblem = new LLFailedLoginResponse("presence", | 81 | LoginBlockedProblem = new LLFailedLoginResponse("presence", |
81 | "Logins are currently restricted. Please try again later.", | 82 | "Logins are currently restricted. Please try again later.", |
82 | "false"); | 83 | "false"); |
84 | UnverifiedAccountProblem = new LLFailedLoginResponse("presence", | ||
85 | "Your account has not yet been verified. Please check " + | ||
86 | "your email and click the provided link.", | ||
87 | "false"); | ||
83 | AlreadyLoggedInProblem = new LLFailedLoginResponse("presence", | 88 | AlreadyLoggedInProblem = new LLFailedLoginResponse("presence", |
84 | "You appear to be already logged in. " + | 89 | "You appear to be already logged in. " + |
85 | "If this is not the case please wait for your session to timeout. " + | 90 | "If this is not the case please wait for your session to timeout. " + |
@@ -322,6 +327,7 @@ namespace OpenSim.Services.LLLoginService | |||
322 | private void FillOutRegionData(GridRegion destination) | 327 | private void FillOutRegionData(GridRegion destination) |
323 | { | 328 | { |
324 | IPEndPoint endPoint = destination.ExternalEndPoint; | 329 | IPEndPoint endPoint = destination.ExternalEndPoint; |
330 | if (endPoint == null) return; | ||
325 | SimAddress = endPoint.Address.ToString(); | 331 | SimAddress = endPoint.Address.ToString(); |
326 | SimPort = (uint)endPoint.Port; | 332 | SimPort = (uint)endPoint.Port; |
327 | RegionX = (uint)destination.RegionLocX; | 333 | RegionX = (uint)destination.RegionLocX; |
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index 00fffff..5c12a54 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -223,6 +223,12 @@ namespace OpenSim.Services.LLLoginService | |||
223 | return LLFailedLoginResponse.UserProblem; | 223 | return LLFailedLoginResponse.UserProblem; |
224 | } | 224 | } |
225 | 225 | ||
226 | if (account.UserLevel < 0) | ||
227 | { | ||
228 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: Unverified account"); | ||
229 | return LLFailedLoginResponse.UnverifiedAccountProblem; | ||
230 | } | ||
231 | |||
226 | if (account.UserLevel < m_MinLoginLevel) | 232 | if (account.UserLevel < m_MinLoginLevel) |
227 | { | 233 | { |
228 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: login is blocked for user level {0}", account.UserLevel); | 234 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: login is blocked for user level {0}", account.UserLevel); |