public PasswordHistoryAttribute(String userId) { OtherPropertyName = userId; var passwordHistoryRepository = new PasswordHistoryRepository(ConfigurationManager.ConnectionStrings["BBOS"].ConnectionString); PasswordHistoryService = new PasswordHistoryService(passwordHistoryRepository); }
private int expiredIDNoOfDays = -90; // Porvided Default Value to make sure existing implementation will not break if Configuration does not exist; public SecurityService(ISecurityRepository repository, IDatastoreValidationRepository validationRepository, ICacheService cacheInstance, ILogService logService, IPortalSettingsService portalSettingsService, IPasswordHistoryService passwordHistoryService) //IMessageService messageService, { repositoryInstance = repository; validationRepositoryInstance = validationRepository; cacheService = cacheInstance; logger = logService; portalSettingsServiceInstance = portalSettingsService; passwordHistoryServiceInstance = passwordHistoryService; }
public PasswordHistoryAttribute(string userId) { OtherPropertyName = userId; var passwordHistoryRepository = new PasswordHistoryRepository(ConfigurationManager.ConnectionStrings["Unity"].ConnectionString); var userManagerProvider = new UserManagerProvider(ConfigurationManager.ConnectionStrings["Unity"].ConnectionString); PasswordHistoryService = new PasswordHistoryService(passwordHistoryRepository, userManagerProvider); }
public LoginController(IAccountApplianceService accountApplianceceService, IAccountService accountService, IAccountTokenService accountTokenService, IEventService eventService, IHelperService helperService, IPasswordHistoryService passwordHistoryService, IOptions <AppSetting> appSettings) : base(appSettings.Value) { this._accountService = accountService; this._accountTokenService = accountTokenService; this._eventService = eventService; this._helperService = helperService; this._passwordHistoryService = passwordHistoryService; this._accountApplianceceService = accountApplianceceService; }
public PasswordController( IUserService userService, IPasswordHistoryService passwordHistoryService, ISecurityQuestionService securityQuestionService, ISecurityAnswerService securityAnswerService, ILogger logger) : base(logger) { this._userService = userService; this._passwordHistoryService = passwordHistoryService; this._securityQuestionService = securityQuestionService; this._securityAnswerService = securityAnswerService; }
public AccountController(UserManager <User> userManager, RoleManager <Role> roleManager, ILogger logger, IMapper mapper, IConfiguration configuration, TokenService tokenService, DefaultDataProtectorTokenProvider <User> dataProtectorTokenProvider, IUserService userService, IEdcPublishService edcPublishService, IPasswordHistoryService passwordHistoryService) : base(logger, mapper) { _userManager = userManager; _configuration = configuration; _tokenService = tokenService; _dataProtectorTokenProvider = dataProtectorTokenProvider; _userService = userService; _edcPublishService = edcPublishService; _passwordHistoryService = passwordHistoryService; }
public UserExtensionService( IContentManager contentManager, IMembershipService membershipService, IClock clock, IMessageService messageService, ShellSettings shellSettings, IEncryptionService encryptionService, IShapeFactory shapeFactory, IShapeDisplay shapeDisplay, ISiteService siteService, IOrchardServices orchardServices, IUserProviderServices userProviderService, IPasswordHistoryService passwordHistoryService ) : base(contentManager, membershipService, clock, messageService, shellSettings, encryptionService, shapeFactory, shapeDisplay, siteService, passwordHistoryService) { _contentManager = contentManager; _orchardservices = orchardServices; _userProviderService = userProviderService; }
public UserService(ILogger logger, IMapper mapper, IServiceProvider serviceProvider, IUserDomainService userDomainService, IAuthorizationStatusValidator authorizationStatusValidator, ITokenProviderService tokenProviderService, AuthApiUrlConfiguration authApiUrlConfiguration, PasswordConfiguration passwordConfiguration, IPasswordHistoryService passwordHistoryService, IEmailService emailService, IEmailTemplateProvider emailTemplateProvider, EmailTemplatesConfiguration emailTemplatesConfiguration) : base(logger, mapper, serviceProvider) { _userDomainService = userDomainService; _authorizationStatusValidator = authorizationStatusValidator; _tokenProviderService = tokenProviderService; _authApiUrlConfiguration = authApiUrlConfiguration; _passwordConfiguration = passwordConfiguration; _passwordHistoryService = passwordHistoryService; _emailService = emailService; _emailTemplateProvider = emailTemplateProvider; _emailTemplatesConfiguration = emailTemplatesConfiguration; }
public AccountController(IDashboardService dashboardService, IPipelineService pipelineService, IPasswordHistoryService passwordHistoryService) : base(pipelineService) { this.dashboardService = dashboardService; this.pipelineService = pipelineService; this.passwordHistoryService = passwordHistoryService; }
public void SetUp() { _passwordHistoryRepository = new Mock <IPasswordHistoryRepository>(); this._userManagerProvider = new Mock <IUserManagerProvider>(); _passwordHistoryService = new PasswordHistoryService(_passwordHistoryRepository.Object, _userManagerProvider.Object); }
public ProfileController(IPasswordHistoryService passwordHistoryService, IAccountService accountService, IHelperService helperService, IOptions <AppSetting> appSettings) : base(appSettings.Value) { this._passwordHistoryService = passwordHistoryService; this._accountService = accountService; this._helperService = helperService; }