Open Closed

Create new user with username contains specific character #9086


User avatar
0
nguyenngoc.son created

Hi,
I want to create a new user with username can contains non ASCII charaters like below image.png


3 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hi,

    You can change these settings in the identity management section of the settings management page as follows:

    Screenshot 2025-04-07 at 13.41.33.png

  • User Avatar
    0
    nguyenngoc.son created

    Hi,
    The option you're showing is for password, the question I want to ask is for username
    I notice we have a topic relative to this https://abp.io/support/questions/5275/How-to-allow-special-characters-in-UserName-and-Email-for-user-registration
    but in the topic we need to specific the character.
    I want to ask is that there is any generic way to allow all non ASCII

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hi,

    Apologies for the earlier misunderstanding, and thank you for your patience.

    If you would like to disable username character validation, you can try the following configuration:

    Configure<IdentityOptions>(options =>
    {
        options.User.AllowedUserNameCharacters = null;
    });
    
    C#

    This will remove the restriction on allowed characters in usernames.
    Let me know if you need help with anything else!

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 08, 2025, 09:13