From 9f597c2d423a80279c4aed042be8a991eedefa21 Mon Sep 17 00:00:00 2001 From: BlueWall Date: Wed, 29 Feb 2012 14:37:52 -0500 Subject: Fix authentication for OpenID provider --- .../Services/AuthenticationService/PasswordAuthenticationService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs b/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs index 48eb3f8..da19b2e 100644 --- a/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs +++ b/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs @@ -78,9 +78,9 @@ namespace OpenSim.Services.AuthenticationService } else { - string hashed = Util.Md5Hash(password + ":" + data.Data["passwordSalt"].ToString()); + string hashed = Util.Md5Hash(Util.Md5Hash(password) + ":" + data.Data["passwordSalt"].ToString()); - //m_log.DebugFormat("[PASS AUTH]: got {0}; hashed = {1}; stored = {2}", password, hashed, data.Data["passwordHash"].ToString()); + // m_log.DebugFormat("[PASS AUTH]: got {0}; hashed = {1}; stored = {2}; passonly {3}", password, hashed, data.Data["passwordHash"].ToString(), hashed2); if (data.Data["passwordHash"].ToString() == hashed) { -- cgit v1.1