public UserManager(AspUserStore <Rol, Usuario> userStore, AspRoleManager <Rol, Usuario> roleManager, BaseModuleManager <Modulo, Usuario> moduleManager, IParametroManager parametroManager) : base(userStore, roleManager, moduleManager, parametroManager) { }
public AspUserManager( AspUserStore <TRole, TUser> userStore, AspRoleManager <TRole, TUser> roleManager, BaseModuleManager <TModule, TUser> moduleManager, IParametroManager parametroManager) : base(userStore) { AspStore = userStore; this.RoleManager = roleManager; this.ModuleManager = moduleManager; this.ParametroManager = parametroManager; UserLockoutEnabledByDefault = true; DefaultAccountLockoutTimeSpan = TimeSpan.FromMinutes(ParametroManager.GetValor <int>(CodigosParametros.PARAMETRO_SEGURIDAD_BLOQUEO_USUARIO_TIEMPO)); MaxFailedAccessAttemptsBeforeLockout = ParametroManager.GetValor <int>(CodigosParametros.PARAMETRO_SEGURIDAD_BLOQUEO_USUARIO_INTENTOS); PasswordValidator = new PasswordValidator { RequiredLength = ParametroManager.GetValor <int>(CodigosParametros.PARAMETRO_SEGURIDAD_CLAVE_MINIMO_LONGITUD), RequireNonLetterOrDigit = ParametroManager.GetValor <bool>(CodigosParametros.PARAMETRO_SEGURIDAD_CLAVE_REQUIERE_CARACTER_DIFERENTE_LETRA_DIGITO), RequireDigit = ParametroManager.GetValor <bool>(CodigosParametros.PARAMETRO_SEGURIDAD_CLAVE_REQUIERE_DIGITO), RequireLowercase = ParametroManager.GetValor <bool>(CodigosParametros.PARAMETRO_SEGURIDAD_CLAVE_REQUIERE_LETRA_MINUSCULA), RequireUppercase = ParametroManager.GetValor <bool>(CodigosParametros.PARAMETRO_SEGURIDAD_CLAVE_REQUIERE_LETRA_MAYUSCULA), }; }
public LoginManager( IApplication application, AspUserManager <TRole, TUser, TModule> userManager, BaseModuleManager <TModule, TUser> moduleManager, IUnitOfWorkManager unitOfWorkManager, IBaseRepository <Sesion> sessionRepository, IPasswordManager <TUser> passwordManager) { this.application = application; this.UserManager = userManager; this.ModuleManager = moduleManager; this.UnitOfWorkManager = unitOfWorkManager; this.SessionRepository = sessionRepository; ClientInfoProvider = NullClientInfoProvider.Instance; this.PasswordManager = passwordManager; }