OpenID auth needs hashing before authenticating
parent
6fc350725d
commit
d242d47e5c
|
@ -248,7 +248,7 @@ For more information, see <a href='http://openid.net/'>http://openid.net/</a>.
|
||||||
if (passwordValues != null && passwordValues.Length == 1)
|
if (passwordValues != null && passwordValues.Length == 1)
|
||||||
{
|
{
|
||||||
if (account != null &&
|
if (account != null &&
|
||||||
(m_authenticationService.Authenticate(account.PrincipalID, passwordValues[0], 30) != string.Empty))
|
(m_authenticationService.Authenticate(account.PrincipalID,Util.Md5Hash(passwordValues[0]), 30) != string.Empty))
|
||||||
authRequest.IsAuthenticated = true;
|
authRequest.IsAuthenticated = true;
|
||||||
else
|
else
|
||||||
authRequest.IsAuthenticated = false;
|
authRequest.IsAuthenticated = false;
|
||||||
|
|
|
@ -80,7 +80,7 @@ namespace OpenSim.Services.AuthenticationService
|
||||||
{
|
{
|
||||||
string hashed = Util.Md5Hash(password + ":" + data.Data["passwordSalt"].ToString());
|
string hashed = 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}", password, hashed, data.Data["passwordHash"].ToString());
|
||||||
|
|
||||||
if (data.Data["passwordHash"].ToString() == hashed)
|
if (data.Data["passwordHash"].ToString() == hashed)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue