Skip to content

Commit

Permalink
Merge pull request #2293 from abpframework/maliming/CheckPassword
Browse files Browse the repository at this point in the history
CheckPassword method should call ReplaceEmailToUsernameOfInputIfNeeds.
  • Loading branch information
hikalkan authored Dec 6, 2019
2 parents 7ef03aa + 88a13e9 commit 131d5b5
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 131d5b5

Please sign in to comment.