Merge pull request #2293 from abpframework/maliming/CheckPassword

CheckPassword method should call ReplaceEmailToUsernameOfInputIfNeeds.
pull/2327/head
Halil İbrahim Kalkan 6 years ago committed by GitHub
commit 131d5b5522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -49,6 +49,9 @@ namespace Volo.Abp.Account.Web.Areas.Account.Controllers
public virtual async Task<AbpLoginResult> CheckPassword(UserLoginInfo login)
{
ValidateLoginInfo(login);
await ReplaceEmailToUsernameOfInputIfNeeds(login);
var identityUser = await _userManager.FindByNameAsync(login.UserNameOrEmailAddress);
if (identityUser == null)

Loading…
Cancel
Save