Base solution for your next web application
Open Closed

User Name #1264


User avatar
0
marcl created

Hi,

Why I couldn't use '-' in user name. I get error.

thx Marcell


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Identity framework does not allow that by default. You can change it's behaviour like this in hte constructor of your UserManager class.

    UserValidator = new UserValidator<User, long>(this)
    {
    	AllowOnlyAlphanumericUserNames = false
    };