Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andrew Waegel 126 posts 126 karma points
    May 19, 2011 @ 22:15
    Andrew Waegel
    0

    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

  • Andrew Waegel 126 posts 126 karma points
    May 20, 2011 @ 00:27
    Andrew Waegel
    0

    Apparently so, thanks Thomas H.

    String EncodedPass = ((umbraco.providers.members.UmbracoMembershipProvider)System.Web.Security.Membership.Provider).EncodePassword("ClearPass");

Please Sign in or register to post replies

Write your reply to:

Draft