Closed CanMehmetK closed 2 years ago
Using ILookupNormalizer seems to be the way to go indeed...
Can you raise a PR?
Changes made in https://github.com/fullstackhero/dotnet-webapi-boilerplate/commit/e04ea0cf827153e1fc6b4dfe3d2751592437f277
Please check with the latest code and confirm.
Describe the bug SeedTenantAdminAsync (example) NormalizedUserName set with ToUpper() couses problems admin@root.com -> normalized as ADMiN@ROOT.COM
same happens for RoleName
Expected behavior admin@root.com -> normalized as ADMIN@ROOT.COM
...or NormalizedEmail = tenant.AdminEmail.ToUpperInvariant()
also already exist in extension
https://github.com/dotnet/aspnetcore/blob/c85baf8db0c72ae8e68643029d514b2e737c9fae/src/Identity/Core/src/IdentityServiceCollectionExtensions.cs#L83
https://github.com/dotnet/aspnetcore/blob/a450cb69b5e4549f5515cdb057a68771f56cefd7/src/Identity/Extensions.Core/src/UpperInvariantLookupNormalizer.cs#L16