How can I reset password as a admin for other users?
I have tried using the code below
var code = await UserManager.GeneratePasswordResetTokenAsync(user.Id);
var result = await UserManager.ResetPasswordAsync(user.Id, code, vm.NewPassword);
when stepping through GeneratePasswordResetTokenAsync, the dispose method of the controller is called.
Can someone please enlighten me?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…