Пример #1
0
 public AccountController(
     ISiteResolver siteResolver,
     SiteUserManager<SiteUser> userManager,
     SiteSignInManager<SiteUser> signInManager,
     ISiteMessageEmailSender emailSender,
     ISmsSender smsSender,
     ILogger<AccountController> logger)
 {
     Site = siteResolver.Resolve();
     this.userManager = userManager;
     this.signInManager = signInManager;
     //config = configuration;
     this.emailSender = emailSender;
     this.smsSender = smsSender;
     log = logger;
 }
Пример #2
0
        public UserAdminController(
            SiteManager siteManager,
            SiteUserManager<SiteUser> userManager,
            ISiteMessageEmailSender emailSender,
            IOptions<UIOptions> uiOptionsAccessor,
            IHtmlLocalizer<CoreResources> localizer
            )
        {
           
            UserManager = userManager;
            this.siteManager = siteManager;
            this.emailSender = emailSender;
            uiOptions = uiOptionsAccessor.Value;
            this.localizer = localizer;

        }
Пример #3
0
 public AccountController(
     SiteSettings currentSite,
     SiteUserManager<SiteUser> userManager,
     SiteSignInManager<SiteUser> signInManager,
     IpAddressTracker ipAddressTracker,
     ISiteMessageEmailSender emailSender,
     ISmsSender smsSender,
     ILogger<AccountController> logger)
 {
     Site = currentSite; 
     this.userManager = userManager;
     this.signInManager = signInManager;
     this.emailSender = emailSender;
     this.smsSender = smsSender;
     this.ipAddressTracker = ipAddressTracker;
     log = logger;
 }
Пример #4
0
 public UserAdminController(
     SiteManager siteManager,
     SiteUserManager<SiteUser> userManager,
     ISiteMessageEmailSender emailSender,
     IOptions<UIOptions> uiOptionsAccessor,
     IStringLocalizer<CloudscribeCore> localizer,
     ITimeZoneIdResolver timeZoneIdResolver,
     ITimeZoneHelper timeZoneHelper
     )
 {
    
     UserManager = userManager;
     this.siteManager = siteManager;
     this.emailSender = emailSender;
     uiOptions = uiOptionsAccessor.Value;
     sr = localizer;
     this.timeZoneIdResolver = timeZoneIdResolver;
     tzHelper = timeZoneHelper;
 }
Пример #5
0
 public AccountController(
     SiteContext currentSite,
     SiteUserManager<SiteUser> userManager,
     SiteSignInManager<SiteUser> signInManager,
     IpAddressTracker ipAddressTracker,
     ISiteMessageEmailSender emailSender,
     ISmsSender smsSender,
     IIdentityServerIntegration identityServerIntegration,
     IStringLocalizer<CloudscribeCore> localizer,
     ILogger<AccountController> logger
     )
 {
     Site = currentSite; 
     this.userManager = userManager;
     this.signInManager = signInManager;
     this.identityServerIntegration = identityServerIntegration;
     this.emailSender = emailSender;
     this.smsSender = smsSender;
     this.ipAddressTracker = ipAddressTracker;
     sr = localizer;
     log = logger;
 }