diff options
author | Dahlia Trimble | 2009-06-27 07:49:10 +0000 |
---|---|---|
committer | Dahlia Trimble | 2009-06-27 07:49:10 +0000 |
commit | 147c9bcd453fde74c13a83a323a40ec0bb571c01 (patch) | |
tree | 7592ca11178cbf9f15971741ddf80eb7f7b7b82e /OpenSim/Framework/Communications/Services/HGLoginAuthService.cs | |
parent | Update svn properties. (diff) | |
download | opensim-SC-147c9bcd453fde74c13a83a323a40ec0bb571c01.zip opensim-SC-147c9bcd453fde74c13a83a323a40ec0bb571c01.tar.gz opensim-SC-147c9bcd453fde74c13a83a323a40ec0bb571c01.tar.bz2 opensim-SC-147c9bcd453fde74c13a83a323a40ec0bb571c01.tar.xz |
Make cleartext authentication case sensitive. Thanks jhurliman for spotting this.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Communications/Services/HGLoginAuthService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs b/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs index 3ab9b38..d3f813e 100644 --- a/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs +++ b/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs | |||
@@ -234,7 +234,7 @@ namespace OpenSim.Framework.Communications.Services | |||
234 | string s = Util.Md5Hash(password + ":" + profile.PasswordSalt); | 234 | string s = Util.Md5Hash(password + ":" + profile.PasswordSalt); |
235 | 235 | ||
236 | bool loginresult = (profile.PasswordHash.Equals(s.ToString(), StringComparison.InvariantCultureIgnoreCase) | 236 | bool loginresult = (profile.PasswordHash.Equals(s.ToString(), StringComparison.InvariantCultureIgnoreCase) |
237 | || profile.PasswordHash.Equals(password, StringComparison.InvariantCultureIgnoreCase)); | 237 | || profile.PasswordHash.Equals(password, StringComparison.InvariantCulture)); |
238 | return loginresult; | 238 | return loginresult; |
239 | } | 239 | } |
240 | } | 240 | } |