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 9f10b7aa1d4..05f37067d4e 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 @@ -49,6 +49,9 @@ public virtual async Task Login(UserLoginInfo login) public virtual async Task CheckPassword(UserLoginInfo login) { ValidateLoginInfo(login); + + await ReplaceEmailToUsernameOfInputIfNeeds(login); + var identityUser = await _userManager.FindByNameAsync(login.UserNameOrEmailAddress); if (identityUser == null)