Exemplo n.º 1
0
        public static TwnUserManager Create(IdentityFactoryOptions <TwnUserManager> options, IOwinContext context)
        {
            var manager = new TwnUserManager(new UserStore <UserEntity>(context.Get <TwnContext>()));

            manager.PasswordValidator = new PasswordValidator
            {
                RequiredLength          = 8,
                RequireNonLetterOrDigit = false,
                RequireDigit            = true,
                RequireLowercase        = true,
                RequireUppercase        = true,
            };

            return(manager);
        }
Exemplo n.º 2
0
 public TwnSignInManager(TwnUserManager userManager, IAuthenticationManager authenticationManager)
     : base(userManager, authenticationManager)
 {
 }