title: Update Password in Asp.net Core 2 Identity
body: <p>This is my Login <code>IAction</code></p>
  
  <p><strong>Controller</strong></p>
  
  <pre class="lang-cs prettyprint-override"><code>    [HttpGet]
      [AllowAnonymous]
      public async Task&lt;IActionResult&gt; Login(string returnUrl = null)
      {
          // Clear the existing external cookie to ensure a clean login process
          await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
  
          ViewData["ReturnUrl"] = returnUrl;
          return View();
      }
  
      [HttpPost]
      [AllowAnonymous]
      [ValidateAntiForgeryToken]
      public async Task&lt;IActionResult&gt; Login(LoginViewModel model, string returnUrl = null)
      {
          if (ModelState.IsValid)
          {
              var result = await _signInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, lockoutOnFailure: false);
  
              if (result.Succeeded)
              {
  
                  _logger.LogInformation("User logged in.");
                  return RedirectToLocal(returnUrl);
              }
              if (result.RequiresTwoFactor)
              {
                  return RedirectToAction(nameof(LoginWith2fa), new { returnUrl, model.RememberMe });
              }
              if (result.IsLockedOut)
              {
                  _logger.LogWarning("User account locked out.");
                  return RedirectToAction(nameof(Lockout));
              }
  
              else
              {
                  ModelState.AddModelError(string.Empty, "Invalid login attempt.");
                  return View(model);
              }
          }
          return View(model);
      }
  </code></pre>
  
  <p>Now My current Email and Password is</p>
  
  <p>Email : <strong>john@gmail.com</strong></p>
  
  <p>Password : <strong>john@gmail.com123</strong></p>
  
  <p>and i want Update Password <strong>john@gmail.com123</strong> to <strong>john@gmail.com677</strong>
  Please Help me out from this issue ,
  Thanks In advance </p>