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 _
2 Answer(s)
-
0
Hi,
You can configure allowed characters as shown below;
services.Configure<IdentityOptions>(options => { options.User.AllowedUserNameCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@"; });
-
0
thank you
Have an answer to this question?
Log in
and write your answer.