protected CoreUserManager(
     UserStore <TRole, TUser> userStore,
     CoreRoleManager <TRole, TUser> roleManager,
     IUserTokenProviderAccessor userTokenProviderAccessor,
     IRepository <OrganizationUnit, long> organizationUnitRepository,
     IRepository <UserOrganizationUnit, long> userOrganizationUnitRepository
     )
     : base(userStore)
 {
     Store       = userStore;
     RoleManager = roleManager;
     Session     = NullSession.Instance;
     UserLockoutEnabledByDefault          = true;
     _organizationUnitRepository          = organizationUnitRepository;
     _userOrganizationUnitRepository      = userOrganizationUnitRepository;
     DefaultAccountLockoutTimeSpan        = TimeSpan.FromMinutes(5);
     MaxFailedAccessAttemptsBeforeLockout = 5;
     UserTokenProvider = userTokenProviderAccessor.GetUserTokenProviderOrNull <TUser>();
 }
Example #2
0
        protected AbpUserManager(
            AbpUserStore <TRole, TUser> userStore,
            AbpRoleManager <TRole, TUser> roleManager,
            IPermissionManager permissionManager,
            IUnitOfWorkManager unitOfWorkManager,
            ICacheManager cacheManager,
            IRepository <OrganizationUnit, long> organizationUnitRepository,
            IRepository <UserOrganizationUnit, long> userOrganizationUnitRepository,
            IOrganizationUnitSettings organizationUnitSettings,
            ILocalizationManager localizationManager,
            IdentityEmailMessageService emailService,
            ISettingManager settingManager,
            IUserTokenProviderAccessor userTokenProviderAccessor,
            IRepository <UserLogin, long> userLoginRepository)
            : base(userStore)
        {
            AbpStore               = userStore;
            RoleManager            = roleManager;
            LocalizationManager    = localizationManager;
            LocalizationSourceName = AbpZeroConsts.LocalizationSourceName;
            _settingManager        = settingManager;
            _userLoginRepository   = userLoginRepository;

            _permissionManager              = permissionManager;
            _unitOfWorkManager              = unitOfWorkManager;
            _cacheManager                   = cacheManager;
            _organizationUnitRepository     = organizationUnitRepository;
            _userOrganizationUnitRepository = userOrganizationUnitRepository;
            _organizationUnitSettings       = organizationUnitSettings;

            AbpSession = NullAbpSession.Instance;

            UserLockoutEnabledByDefault          = true;
            DefaultAccountLockoutTimeSpan        = TimeSpan.FromMinutes(5);
            MaxFailedAccessAttemptsBeforeLockout = 5;

            EmailService = emailService;

            UserTokenProvider = userTokenProviderAccessor.GetUserTokenProviderOrNull <TUser>();
        }
Example #3
0
        protected StudioXUserManager(
            StudioXUserStore <TRole, TUser> userStore,
            StudioXRoleManager <TRole, TUser> roleManager,
            IPermissionManager permissionManager,
            IUnitOfWorkManager unitOfWorkManager,
            ICacheManager cacheManager,
            IRepository <OrganizationUnit, long> organizationUnitRepository,
            IRepository <UserOrganizationUnit, long> userOrganizationUnitRepository,
            IOrganizationUnitSettings organizationUnitSettings,
            ILocalizationManager localizationManager,
            IdentityEmailMessageService emailService,
            ISettingManager settingManager,
            IUserTokenProviderAccessor userTokenProviderAccessor)
            : base(userStore)
        {
            StudioXStore        = userStore;
            RoleManager         = roleManager;
            LocalizationManager = localizationManager;
            this.settingManager = settingManager;

            this.permissionManager              = permissionManager;
            this.unitOfWorkManager              = unitOfWorkManager;
            this.cacheManager                   = cacheManager;
            this.organizationUnitRepository     = organizationUnitRepository;
            this.userOrganizationUnitRepository = userOrganizationUnitRepository;
            this.organizationUnitSettings       = organizationUnitSettings;

            StudioXSession = NullStudioXSession.Instance;

            UserLockoutEnabledByDefault          = true;
            DefaultAccountLockoutTimeSpan        = TimeSpan.FromMinutes(5);
            MaxFailedAccessAttemptsBeforeLockout = 5;

            EmailService = emailService;

            UserTokenProvider = userTokenProviderAccessor.GetUserTokenProviderOrNull <TUser>();
        }