Set AllowedUserNameCharacters to null

This commit is contained in:
Enes Sadık Özbek 2019-09-27 16:16:47 +03:00
parent ea4e2ad3a6
commit 01ceeeba82

View file

@ -28,7 +28,10 @@ namespace SteamOpenIdConnectProxy
services.AddDbContext<AppInMemoryDbContext>(options =>
options.UseInMemoryDatabase("default"));
services.AddIdentity<IdentityUser, IdentityRole>()
services.AddIdentity<IdentityUser, IdentityRole>(options =>
{
options.User.AllowedUserNameCharacters = null;
})
.AddEntityFrameworkStores<AppInMemoryDbContext>()
.AddDefaultTokenProviders();