BLACK FRIDAY
From November 21
to December 02
99Days : 99Hrs : 99Min : 99Sec
SAVE UP TO$3K
Also valid for the
existing customers!
Open Closed

Chinese language input error while Creating User #221


0
lalitChougule created
  • ABP Framework version: v2.7.0
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): no / Yes
  • Exception message and stack trace: User name '里约' is invalid, can only contain letters or digits.
  • Steps to reproduce the issue: Create User as per screenshot attached

I want to create user by providing chinese character as input but came accross this error

How do I set rule to allow chinese letters ?


2 Answer(s)
  • 0
    liangshiwei created
    Support Team

    Hi

    Try:

    Configure<IdentityOptions>(options =>
    {
        //null allows all characters
        options.User.AllowedUserNameCharacters = null;
    });
    
  • 0
    liangshiwei created
    Support Team

    I close this question, if you still have this problem, please reopen.