Answers for "automatically change password of user"

C#
4

usermanager change password without current password

var user = await UserManager.FindByIdAsync(id);

var token = await UserManager.GeneratePasswordResetTokenAsync(user);

var result = await UserManager.ResetPasswordAsync(user, token, "MyN3wP@ssw0rd");
Posted by: Guest on May-28-2020

Code answers related to "automatically change password of user"

C# Answers by Framework

Browse Popular Code Answers by Language