public TwoFactorController(
     AppUserManager userManager,
     SignInManager <ApplicationUser> signInManager,
     UrlEncoder urlEncoder,
     IEmailSender emailSender,
     ISmsSender smsSender)
 {
     _twoFactorService = new TwoFactorService(userManager, signInManager, urlEncoder, emailSender, smsSender);
 }
Example #2
0
        public ManageController(
            AppUserManager userManager,
            SignInManager <ApplicationUser> signInManager,
            UrlEncoder urlEncoder,
            IEmailSender emailSender,
            ISmsSender smsSender,
            ILoggerFactory loggerFactory)
        {
            _userManager   = userManager;
            _signInManager = signInManager;
            _emailSender   = emailSender;
            _smsSender     = smsSender;
            _logger        = loggerFactory.CreateLogger <ManageController>();

            _twoFactorService = new TwoFactorService(userManager, signInManager, urlEncoder, emailSender, smsSender);
        }