title: reset user lockout by sending a reset account link using asp net identity 2.1
body: <p>I have an ASP MVC project in which I want to send an unlock account lockout link to the user's email after the user gets lockout.I use asp net identity 2.1 in my project. What i could possibly do is to lock the account for a period of 30 minutes using asp identity. After this time the account gets unlocked. I tried to send email to the user which contains a reset link. The link calls a method which has the following code.</p>
  
  <pre><code>[AllowAnonymous]
  public async Task&lt;ActionResult&gt; UnlockAccount(string userId)
  {
      await UserManager.ResetAccessFailedCountAsync(userId);
      return RedirectToAction("Login");
  }
  </code></pre>
  
  <p>But after this still my account is locked for the time period of 30 minutes which i setup in IdentityConfig.cs. Is this possible in asp net identity.</p>