Copied to clipboard

Flag this post as spam?

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

  • Christian 1 post 71 karma points
    Jan 11, 2018 @ 17:40

    Checking password against current member password

    I have some pages that members can carry out various actions on (e.g. change password) and I want to have the member re-enter their password before carrying out the action. What's the best way of doing this?

    I can see in the Umbraco.Web.Security.MembershipHelper class there is a Login(username, password) method, but this looks like it goes through the process of verification and setting the authentication cookie, but as the user is already logged on and has a cookie already.

    I could use System.Web.Security.Membership.ValidateUser(username, password) directly, but feel like it would be better to go through the Umbraco API (even if it does just wrap this).

    Are there any other ways I'm overlooking?

Please Sign in or register to post replies

Write your reply to: