More in this section

Forums / Developing with Sitefinity / Password Not Resetting

Password Not Resetting

2 posts, 1 answered
  1. Aby
    Aby avatar
    5 posts
    16 May 2013
    23 Jun 2015
    Link to this post


    I am trying to reset the user password with the Sitefinity API as following

                 UserManager userManager = UserManager.GetManager();
                 userManager.Provider.SuppressSecurityChecks = true;
                User user = userManager.GetUser(<username>);

                 string reset = user.ResetPassword();

    The Api returns a random string which I suppose is thenew reset password. But when I try to login with this new password it doesnt work and the old password seems to be working even after the reset is called.

    Any thought?

  2. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    17 Aug 2017
    26 Jun 2015
    Link to this post
    Hello Aby,

    Can you please make sure that you call SaveChanges() after you reset the password of the user:


    Sabrie Nedzhip
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 1 answered