public OmsUserManager(ApiUserContext dbContext) : base(new UsuarioStore(dbContext)) { if (Dbcontext == null) { Dbcontext = dbContext; } UserValidator = new UserValidator <Usuario, long>(this) { AllowOnlyAlphanumericUserNames = false, RequireUniqueEmail = true }; PasswordValidator = new PasswordValidator { RequiredLength = 6, RequireNonLetterOrDigit = false, RequireDigit = false, RequireLowercase = false, RequireUppercase = false, }; //UserTokenProvider = new EmailTokenProvider<ApplicationUser>(); ClaimsIdentityFactory = new ClaimsFactory(); // enable lockout on users DefaultAccountLockoutTimeSpan = TimeSpan.FromMinutes(1); MaxFailedAccessAttemptsBeforeLockout = 6; UserLockoutEnabledByDefault = true; }
public RoleManager(ApiUserContext context) : base(new RoleStore <Roles, long, UsuarioRole>(context)) { _context = context; }
public UsuarioStore(ApiUserContext context) : base(context) { }