0
varunab created
- What is your product version? 8.1.0
- What is your product type (Angular or MVC)? MVC
- What is product framework type (.net framework or .net core)? .Net Core
Hello.
what are the allowed values/special characters for the “username” field?
I entered "k!%^)<>?"{}2" and got an error message saying "User name k!%^)<>?"{}2 is invalid, can only contain letters or digits". But I have been able to create usernames containing @, ' and _
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
2 Answer(s)
-
0
Hi,
You can configure allowed characters as shown below;
services.Configure<IdentityOptions>(options => { options.User.AllowedUserNameCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@"; });Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
thank you
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)