I have been using ASP.NET Identity 2.2.1. Following is the code in post method of VerifyCode action.
var result = await SignInManager.TwoFactorSignInAsync(model.Provider, model.Code, isPersistent: model.RememberMe, rememberBrowser: model.RememberBrowser);
switch (result)
{
case SignInStatus.Success:
return RedirectToAction("Dashboard","Index");
case SignInStatus.LockedOut:
return View("Lockout");
case SignInStatus.Failure:
default:
ModelState.AddModelError("", "Invalid code.");
return View(model);
}
When both model.RememberMe and model.RememberBrowser is true browser remembers Identity and two factor cookie for 2 weeks. This is the default implementation.
But i only need to remember TFA for 8 hours. How can i do that?
I have been searching for the solution since last 10 days but i haven't found the solution. A ...
Go to the complete details ...