Configure Microsoft.AspNet.Identity to allow email address as username

前端 未结 13 1979
时光取名叫无心
时光取名叫无心 2020-11-28 20:08

I\'m in the process of creating a new application and started out using EF6-rc1, Microsoft.AspNet.Identity.Core 1.0.0-rc1, Microsoft.AspNet.Identity.EntityFramework 1.0.0-rc

相关标签:
13条回答
  • 2020-11-28 20:53

    The C# version of this (in App_Code\IdentityModels.cs) is

    public UserManager()
            : base(new UserStore<ApplicationUser>(new ApplicationDbContext()))
        {
            UserValidator = new UserValidator<ApplicationUser>(this) { AllowOnlyAlphanumericUserNames = false };
        }
    
    0 讨论(0)
提交回复
热议问题