mirror of https://github.com/abpframework/abp.git
3 changed files with 53 additions and 2 deletions
@ -0,0 +1,41 @@ |
|||||
|
using System.Threading.Tasks; |
||||
|
using Microsoft.AspNetCore.Authentication; |
||||
|
using Microsoft.AspNetCore.Http; |
||||
|
using Microsoft.AspNetCore.Identity; |
||||
|
using Microsoft.Extensions.Logging; |
||||
|
using Microsoft.Extensions.Options; |
||||
|
|
||||
|
namespace Volo.Abp.Identity.AspNetCore |
||||
|
{ |
||||
|
public class AbpSignInManager : SignInManager<IdentityUser> |
||||
|
{ |
||||
|
public AbpSignInManager( |
||||
|
UserManager<IdentityUser> userManager, |
||||
|
IHttpContextAccessor contextAccessor, |
||||
|
IUserClaimsPrincipalFactory<IdentityUser> claimsFactory, |
||||
|
IOptions<IdentityOptions> optionsAccessor, |
||||
|
ILogger<SignInManager<IdentityUser>> logger, |
||||
|
IAuthenticationSchemeProvider schemes, |
||||
|
IUserConfirmation<IdentityUser> confirmation |
||||
|
) : base( |
||||
|
userManager, |
||||
|
contextAccessor, |
||||
|
claimsFactory, |
||||
|
optionsAccessor, |
||||
|
logger, |
||||
|
schemes, |
||||
|
confirmation) |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public override Task<SignInResult> PasswordSignInAsync( |
||||
|
string userName, |
||||
|
string password, |
||||
|
bool isPersistent, |
||||
|
bool lockoutOnFailure) |
||||
|
{ |
||||
|
return base.PasswordSignInAsync(userName, password, isPersistent, lockoutOnFailure); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue