After setting up a CustomMembershipProvider I need to validate the member before logging. The problem I am facing is that my password is a simple text which is used as an input from the user while the member.Password is the hashed password.
public override bool ValidateUser(string username, string password)
{
var member = _membersRepository.GetMemberByUsername(username);
if (member != null)
{
return member.Password == password;
}
return false;
}
How can I solve this problem so the passwords are properly compared?
CustomMembershipProvider.ValidateUser()
Hello!
After setting up a CustomMembershipProvider I need to validate the member before logging. The problem I am facing is that my password is a simple text which is used as an input from the user while the member.Password is the hashed password.
How can I solve this problem so the passwords are properly compared?
is working on a reply...