public ApplicationUserManager(IUserBS store) : base(store) { // Configure validation logic for usernames UserValidator = new UserValidator(this) { AllowOnlyAlphanumericUserNames = true, RequireUniqueEmail = true }; // Configure validation logic for passwords PasswordValidator = new PassValidator { RequiredLength = 4, RequireNonLetterOrDigit = false, RequireDigit = true, RequireLowercase = false, RequireUppercase = false, }; EmailService = new EmailService(); // Configure user lockout defaults UserLockoutEnabledByDefault = true; DefaultAccountLockoutTimeSpan = TimeSpan.FromMinutes(5); MaxFailedAccessAttemptsBeforeLockout = 5; var provider = new DpapiDataProtectionProvider("Neutrino"); UserTokenProvider = new DataProtectorTokenProvider <User, int>(provider.Create("ASP.NET Identity")); }
public AccountServiceController(IAppSettingManager appSettingManager , IEntityListLoader <Role> roleBusinessService , IUserBS userBusinessService , ApplicationUserManager userManager , ApplicationSignInManager signInManager , IAuthenticationManager authenticationManager) { this.appSettingManager = appSettingManager; this.roleBusinessService = roleBusinessService; this.userBusinessService = userBusinessService; _userManager = userManager; _signInManager = signInManager; this.authenticationManager = authenticationManager; this.roleBusinessService = roleBusinessService; }
public MicropostsController(IUserBS userBS, IMicropostBS micropostBS) { _userBS = userBS; _micropostBS = micropostBS; }
public SessionsController(IUserBS userBS) { _userBS = userBS; }