How can I reset password as a admin for other users?
I have tried using the code below
var code = await UserManager.GeneratePasswordResetTokenAsync(u
You can also extend UserManager and expose an explicit AdminChangePassword API that doesn't require any information. Something like this in ApplicationUserManager which extends UserManager should work:
public IdentityResult ChangePasswordAdmin(string userId, string newPassword) {
var user = FindById(userId);
// validate password using PasswordValidator.Validate
user.PasswordHash = PasswordHasher.HashPassword(newPassword);
Update(user);
}