Actually Chris if you're using Umbraco 4 the supported method is like this:
var member = System.Web.Security.Membership.GetUser(); // returns current user, there are overloads for accessing via other info member.ChangePassword(member.GetPassword(), txtPassword1.Text);
In 4.1 you'll find basically all of the members in the umbraco.businesslogic.member.Member class obsoleted as people should be using the ASP.NET Membership Provider classes.
@Wayne - and by doing this you ensure that you use the encryption method configured in the web.config
umbraco.library.md5 is not encrypting the password correctly
The code that i am using is below. It does not seem to encrypt the password correctly as when i try to login again it says the password is incorrect.
currentMember.ChangePassword(umbraco.library.md5(txtPassword1.Text));
That will acutally cause the password to be encrypted twice. Try this technique instead.
The member.password method encrypts the password based on the settings in web.config at this line:
Hope that helps.
Actually Chris if you're using Umbraco 4 the supported method is like this:
In 4.1 you'll find basically all of the members in the umbraco.businesslogic.member.Member class obsoleted as people should be using the ASP.NET Membership Provider classes.
@Wayne - and by doing this you ensure that you use the encryption method configured in the web.config
is working on a reply...