diff options
author | Melanie | 2010-04-30 05:33:45 +0100 |
---|---|---|
committer | Melanie | 2010-04-30 05:33:45 +0100 |
commit | 9c79fd630819412f4db94c86caea73200933db5d (patch) | |
tree | f6408d3a4ab8ae82ff2a532dc23875438bcf4086 /OpenSim/Services/LLLoginService/LLLoginService.cs | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
download | opensim-SC-9c79fd630819412f4db94c86caea73200933db5d.zip opensim-SC-9c79fd630819412f4db94c86caea73200933db5d.tar.gz opensim-SC-9c79fd630819412f4db94c86caea73200933db5d.tar.bz2 opensim-SC-9c79fd630819412f4db94c86caea73200933db5d.tar.xz |
Treat a UserLevel of -1 as an unverified account and refer them to their
activation email.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginService.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index 4d7dfd1..5301140 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -164,6 +164,12 @@ namespace OpenSim.Services.LLLoginService | |||
164 | return LLFailedLoginResponse.UserProblem; | 164 | return LLFailedLoginResponse.UserProblem; |
165 | } | 165 | } |
166 | 166 | ||
167 | if (account.UserLevel < 0) | ||
168 | { | ||
169 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: Unverified account"); | ||
170 | return LLFailedLoginResponse.UnverifiedAccountProblem; | ||
171 | } | ||
172 | |||
167 | if (account.UserLevel < m_MinLoginLevel) | 173 | if (account.UserLevel < m_MinLoginLevel) |
168 | { | 174 | { |
169 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: login is blocked for user level {0}", account.UserLevel); | 175 | m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: login is blocked for user level {0}", account.UserLevel); |