示例#1
0
        public static AssetHubUserManager Create(IdentityFactoryOptions <AssetHubUserManager> options, IOwinContext context)
        {
            var db      = context.Get <AssetHubContext>();
            var manager = new AssetHubUserManager(new UserStore <User>(db));

            manager.UserValidator = new AssetHubUserValidator(manager)
            {
                RequireUniqueEmail = true,
            };

            return(manager);
        }
示例#2
0
 public AssetHubUserValidator(AssetHubUserManager manager) : base(manager)
 {
 }