Merge pull request #17370 from abpframework/auto-merge/rel-7-3/2120

Merge branch dev with rel-7.3
pull/17258/head^2
maliming 1 year ago committed by GitHub
commit ff07a7ded3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -42,7 +42,7 @@ public class AbpSignInManager : SignInManager<IdentityUser>
_identityUserManager = userManager;
}
public override async Task<SignInResult> PasswordSignInAsync(
public async override Task<SignInResult> PasswordSignInAsync(
string userName,
string password,
bool isPersistent,
@ -86,7 +86,7 @@ public class AbpSignInManager : SignInManager<IdentityUser>
return await base.PasswordSignInAsync(userName, password, isPersistent, lockoutOnFailure);
}
protected override async Task<SignInResult> PreSignInCheck(IdentityUser user)
protected async override Task<SignInResult> PreSignInCheck(IdentityUser user)
{
if (!user.IsActive)
{
@ -107,4 +107,17 @@ public class AbpSignInManager : SignInManager<IdentityUser>
return await base.PreSignInCheck(user);
}
/// <summary>
/// This is to call the protection method SignInOrTwoFactorAsync
/// </summary>
/// <param name="user"></param>
/// <param name="isPersistent"></param>
/// <param name="loginProvider"></param>
/// <param name="bypassTwoFactor"></param>
/// <returns></returns>
public virtual async Task<SignInResult> CallSignInOrTwoFactorAsync(IdentityUser user, bool isPersistent, string loginProvider = null, bool bypassTwoFactor = false)
{
return await base.SignInOrTwoFactorAsync(user, isPersistent, loginProvider, bypassTwoFactor);
}
}

Loading…
Cancel
Save