Skip to content

Commit

Permalink
CheckPassword method should call ReplaceEmailToUsernameOfInputIfNeeds.
Browse files Browse the repository at this point in the history
Resolve #2287
  • Loading branch information
maliming committed Dec 2, 2019
1 parent b9d2e5f commit 88a13e9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ public virtual async Task<AbpLoginResult> Login(UserLoginInfo login)
public virtual async Task<AbpLoginResult> CheckPassword(UserLoginInfo login)
{
ValidateLoginInfo(login);

await ReplaceEmailToUsernameOfInputIfNeeds(login);

var identityUser = await _userManager.FindByNameAsync(login.UserNameOrEmailAddress);

if (identityUser == null)
Expand Down

0 comments on commit 88a13e9

Please sign in to comment.