What I'm trying to do is just allow alphanumeric characters during the .NET MVC 6 / vNext registration process and every lesson I've seen (i.e. Set up Microsoft.AspNet.Identity to specify an email address as username ) UserManager.UserValidator , which is now not available in the current structure.
I saw this: UserValidator in Microsoft.AspNet.Identity vnext , which looks just like mine, but they took the UserNameValidationRegex property from the frame since then. Brilliant.
services.AddIdentity<ApplicationUser, IdentityRole>( o => { o.Password.RequireDigit = false; o.Password.RequireLowercase = false; o.Password.RequireUppercase = false; o.Password.RequireNonLetterOrDigit = false; o.Password.RequiredLength = 2;
I found o.User.AllowedUserNameCharacters , but in the absence of the documentation I found on this, I have no idea in what format I should install this? Anyone out there in the same boat coping with this?
Thanks in advance.
Chris dixon
source share