title: Change Password in UserManager(Asp.Identity) c#
body: <p>Please suggest best practice to update new password in Database through UserManager in Asp.Identity</p>
  
  <p>Currently I am using below approach to update password. Is this enough or I want to use different approach?</p>
  
  <pre><code>ApplicationDbContext context = new ApplicationDbContext();
  UserStore&lt;ApplicationUser&gt; store = new UserStore&lt;ApplicationUser&gt;(context);
  UserManager&lt;ApplicationUser&gt; UserManager = new UserManager&lt;ApplicationUser&gt;(store);
  String userId = User.Identity.GetUserId();//"&lt;YourLogicAssignsRequestedUserId&gt;";
  String newPassword = "test@123"; //"&lt;PasswordAsTypedByUser&gt;";
  String hashedNewPassword = UserManager.PasswordHasher.HashPassword(newPassword);
  ApplicationUser cUser = await store.FindByIdAsync(userId);
  **await store.SetPasswordHashAsync(cUser, hashedNewPassword);
  await store.UpdateAsync(cUser);**
  </code></pre>