Base solution for your next web application
Open Closed

Remember me and Remember this browser does not work #11001


User avatar
0
wydeedev created
  • What is your product version? 11.0.0
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)? .Net Core
  • What is ABP Framework version? 7.0.1

We noticed that the "Remember me" checkbox and "Remember this browser" (when Email 2fa is activated) does not have any impact on the next login.

Even though the Identity.TwoFactorRememberMe cookie does exists, and that the "signInManager.TwoFactorSignInAsync" have the correct parameters, this bellow always returns "RequiresTwoFactor" (again, only when email 2fa is activated for this account).

var signInResult = await _signInManager.SignInOrTwoFactorAsync(loginResult, loginModel.RememberMe); / if (signInResult.RequiresTwoFactor) { return Json(new AjaxResponse { TargetUrl = Url.Action( "SendSecurityCode", new { returnUrl = returnUrl, rememberMe = loginModel.RememberMe }) }); }

You can easily reproduce this with your default project. Just edit the default user to use Email 2fa, and try to check the "Remember me" and "Remember this browser" checkbox on the next login. You will always be prompted to enter your credentials and 2fa, so it appears it does not have any effect.


1 Answer(s)