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/LoginService.cs | |
parent | Update svn properties. (diff) | |
download | opensim-SC_OLD-147c9bcd453fde74c13a83a323a40ec0bb571c01.zip opensim-SC_OLD-147c9bcd453fde74c13a83a323a40ec0bb571c01.tar.gz opensim-SC_OLD-147c9bcd453fde74c13a83a323a40ec0bb571c01.tar.bz2 opensim-SC_OLD-147c9bcd453fde74c13a83a323a40ec0bb571c01.tar.xz |
Make cleartext authentication case sensitive. Thanks jhurliman for spotting this.
Diffstat (limited to 'OpenSim/Framework/Communications/Services/LoginService.cs')
-rw-r--r-- | OpenSim/Framework/Communications/Services/LoginService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Framework/Communications/Services/LoginService.cs b/OpenSim/Framework/Communications/Services/LoginService.cs index 7eb98d7..897c763 100644 --- a/OpenSim/Framework/Communications/Services/LoginService.cs +++ b/OpenSim/Framework/Communications/Services/LoginService.cs | |||
@@ -769,8 +769,8 @@ namespace OpenSim.Framework.Communications.Services | |||
769 | //m_log.Info("[LOGIN]: userprofile:" + profile.passwordHash + " SubCT:" + password); | 769 | //m_log.Info("[LOGIN]: userprofile:" + profile.passwordHash + " SubCT:" + password); |
770 | 770 | ||
771 | passwordSuccess = (profile.PasswordHash.Equals(s.ToString(), StringComparison.InvariantCultureIgnoreCase) | 771 | passwordSuccess = (profile.PasswordHash.Equals(s.ToString(), StringComparison.InvariantCultureIgnoreCase) |
772 | || profile.PasswordHash.Equals(password, StringComparison.InvariantCultureIgnoreCase)); | 772 | || profile.PasswordHash.Equals(password, StringComparison.InvariantCulture)); |
773 | 773 | ||
774 | return passwordSuccess; | 774 | return passwordSuccess; |
775 | } | 775 | } |
776 | 776 | ||