- 新建 CustomIdentityErrorDescriptor 自定义错误信息
- 启用自定义的错误信息:
services.AddIdentity<IdentityUser, IdentityRole>().AddErrorDescriber<CustomIdentityErrorDescriptor>().AddEntityFrameworkStores<AppDbContext>();
services.AddIdentity<IdentityUser, IdentityRole>().AddErrorDescriber<CustomIdentityErrorDescriptor>().AddEntityFrameworkStores<AppDbContext>();
若有收获,就点个赞吧
0 人点赞
让时间为你证明