I have a new requirement that when a member edits their password, they're not allowed to reuse the old one. I can get the old password's hashed value with Member.GetCurrentMember().Password, but can't figure out how to generate the hashed value for the proposed new password for comparison.
There's this method EncodePassword in umbraco.providers.members.UmbracoMembershipProvider - is it possible to get to this in codebehind?
Avoiding member password reuse
Hello,
I have a new requirement that when a member edits their password, they're not allowed to reuse the old one. I can get the old password's hashed value with Member.GetCurrentMember().Password, but can't figure out how to generate the hashed value for the proposed new password for comparison.
There's this method EncodePassword in umbraco.providers.members.UmbracoMembershipProvider - is it possible to get to this in codebehind?
- Andrew
Apparently so, thanks Thomas H.
String EncodedPass = ((umbraco.providers.members.UmbracoMembershipProvider)System.Web.Security.Membership.Provider).EncodePassword("ClearPass");
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.