I am wondering if there is a way to reset password with UserManager
of ASP.NET MVC 5
I tried this with user that already has a password bu
I added this to my UserManager class :
public virtual async Task UpdatePassword(ApplicationUser user, string newPassword)
{
var passwordStore = Store as IUserPasswordStore;
if (passwordStore == null)
throw new Exception("UserManager store does not implement IUserPasswordStore");
var result = await base.UpdatePassword(passwordStore, user, newPassword);
if (result.Succeeded)
result = await base.UpdateAsync(user);
return result;
}