Base solution for your next web application
Open Closed

Cannot create a email user like [email protected] #5235


User avatar
0
OriAssurant created

I am trying to create an user with email id <a href="mailto:[email protected]">[email protected]</a> but Abp throws an error saying User name <a href="mailto:[email protected]">[email protected]</a> is invalid, can only contain letters or digits.

How can we allow '-' in the emails ? As now most of the companies uses such kind of email format!


4 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    please specify your project type (MVC or Core / AngularJS or Angular the latest)

  • User Avatar
    0
    alper created
    Support Team

    I tried with different project types but I successfully created the user. On which page are you getting this error? [attachment=0:180bl2wz]Email-validation.jpg[/attachment:180bl2wz] This is the user list page in AngularJS/MVC project.

  • User Avatar
    0
    OriAssurant created

    I got it worked now. We are using angular mvc

    I used this in UserManager.cs

            this.UserValidator = new UserValidator&lt;User, long&gt;(this)
            {
                AllowOnlyAlphanumericUserNames = false
            };
    
  • User Avatar
    0
    alper created
    Support Team

    good to hear that ;) and thanks for your feedback