title: Password Recovery in ASP.NET MVC5
body: <p>I am working in an <strong>ASP.NET MVC 5</strong> application. Users are able to register and login without any issues. However, when one user forgets his/her password, the forgot password process (already in place) doesn't do anything! No emails are sent to the user with a <code>click here to reset password</code> link.</p>
  
  <p>Currently my <code>ForgotPassword</code> action method looks like this:</p>
  
  <pre><code>[HttpPost]
  [AllowAnonymous]
  [ValidateAntiForgeryToken]
  public async Task&lt;ActionResult&gt; ForgotPassword(ForgotPasswordViewModel model)
  {
      if (ModelState.IsValid)
      {
          var user = await UserManager.FindByNameAsync(model.Email);
          if (user == null || !(await UserManager.IsEmailConfirmedAsync(user.Id)))
          {
              // Don't reveal that the user does not exist or is not confirmed
              return View("ForgotPasswordConfirmation");
          }
      }
  
      // If we got this far, something failed, redisplay form
      return View(model);
  }
  </code></pre>
  
  <p>I am guessing that is left to the developers to implement. I Googled around and found nothing that was straight forward.</p>
  
  <p>What is the easiest way to allow this?</p>