public AuthenticationController(UserManager <ApplicationUser> userManager,
                                 SignInManager <ApplicationUser> signInManager,
                                 IUserRepository userRepository,
                                 IUserValidatorService userValidatorService,
                                 ITokenGeneratorService tokenGeneratorService,
                                 IOptions <TokenOptions> tokens,
                                 ILogger <AuthenticationController> logger)
     : base(userManager, logger)
 {
     _signInManager         = signInManager;
     _userRepository        = userRepository;
     _tokenOptions          = tokens.Value;
     _userValidatorService  = userValidatorService;
     _tokenGeneratorService = tokenGeneratorService;
 }
Esempio n. 2
0
 public UserController(IUserService userService, IUserValidatorService userValidatorService)
 {
     _userService          = userService;
     _userValidatorService = userValidatorService;
 }