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).
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?
is working on a reply...