Copied to clipboard

Flag this post as spam?

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


  • Imrankhan Pathan 14 posts 33 karma points
    Sep 28, 2012 @ 15:39
    Imrankhan Pathan
    0

    Umbraco change password issue

    Hello friends.

    I am using member section in umbraco. i have used Member.MakeNew method to register member in my website.

    I have one section where user can change his password. I have used following code to change password.

    umbraco.cms.businesslogic.member.Member m = umbraco.cms.businesslogic.member.Member.GetCurrentMember();

    m.ChangePassword(tbPassword.Text);

    When I register user then password goes in encrypted format in Member table but when I use ChangePassword method then it goes in plain text formate in Member table and because of that I am not able to re-login in my website by using that member credential.

    Is this a issue of umbraco version 4.8.0?

    Thanks

    Imrankhan

  • Wing 17 posts 39 karma points
    Apr 24, 2014 @ 12:48
    Wing
    0

    Not sure whether this is an issue specific to 4.8.0 or not. But as you have noticed, when you use ChangePassword the new password won't be encrypted. ChangePassword mostlikely didn't get updated since older versions of Umbraco.

    You are able to set the new password by doing the following:

    m.Password = "newpassword";
    m.Save();
    

    You prolly solved it already, but for other people who goes by like me :)

Please Sign in or register to post replies

Write your reply to:

Draft