From 8cadaa7ed9d9e2a26ee8fa3a88ee3cb2e4388138 Mon Sep 17 00:00:00 2001 From: maliming Date: Thu, 9 May 2024 09:32:33 +0800 Subject: [PATCH] `SetAsync` identity options before using `SignInManager`. --- .../Areas/Account/Controllers/AccountController.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/account/src/Volo.Abp.Account.Web/Areas/Account/Controllers/AccountController.cs b/modules/account/src/Volo.Abp.Account.Web/Areas/Account/Controllers/AccountController.cs index fbac7129c2..6ab60e7ee4 100644 --- a/modules/account/src/Volo.Abp.Account.Web/Areas/Account/Controllers/AccountController.cs +++ b/modules/account/src/Volo.Abp.Account.Web/Areas/Account/Controllers/AccountController.cs @@ -59,6 +59,9 @@ public class AccountController : AbpControllerBase ValidateLoginInfo(login); await ReplaceEmailToUsernameOfInputIfNeeds(login); + + await IdentityOptions.SetAsync(); + var signInResult = await SignInManager.PasswordSignInAsync( login.UserNameOrEmailAddress, login.Password,