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); }
public AssetHubUserValidator(AssetHubUserManager manager) : base(manager) { }