Password Not Resetting
Hi,
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?
Hello Aby,
Can you please make sure that you call SaveChanges() after you reset the password of the user:
user.ResetPassword();
userManager.SaveChanges();