public AuthRepo(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager,
                 IJwtSecurity jwtSecurity, IHttpContextAccessor httpContextAccessor, AdminstrationDbContext dbContext, IOptions <EmailAuthOptions> optionsAccessor)
 {
     _userManager             = userManager;
     _signInManager           = signInManager;
     _jwtSecurity             = jwtSecurity;
     this.httpContextAccessor = httpContextAccessor;
     _dbContext = dbContext;
     Options    = optionsAccessor.Value;
 }
예제 #2
0
 public UserController(IMkoUserService crud, IMarukoCache cache, IJwtSecurity jwt) : base(crud)
 {
     _crud  = crud;
     _cache = cache;
     _jwt   = jwt;
 }