Umbraco 10 Member Value for Login
# help-with-umbraco
d
Hi All, Random Umbraco 10 question that has been making me tear out my hair a little. It seems the member value Login when you create a new member cannot contain special characters ('+! etc) In umbraco 8 this doesnt seem to be a issue. We have a client who is finding when people try to sign up to their site they enter a email with a special character to sign up that they are getting a generic error back (we process it from umbraco). However in the backoffice section you can create a new user without special characters in the login field and then after edit the record and add them in, which makes no sense. But you cant create a new user from the backoffice with the login of say test'1@hotmail.com The @ symbol doesnt seem to be a issue for the field Any ideas would be great.
s
My first guess would be https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.identity.useroptions.allowedusernamecharacters?view=aspnetcore-6.0 since umbraco uses the .NET Identity although that list does include a + by default, but it might be worth having a look at.
s
HI David, I have a V10 members solution and registration with something+here@here.com works fine. Are you sure it's not somethign custom firing? What is the line of code in the registration?
Not doing anything funky here - I use: IdentityResult result = await RegisterMemberAsync(model, false);
Oopps sorry - wrong line: r identityUser = MemberIdentityUser.CreateNew(model.Email, model.Email, Umbraco.Cms.Core.Constants.Conventions.MemberTypes.DefaultAlias, false, name); IdentityResult identityResult = await _memberManager.CreateAsync( identityUser, model.Password);
4 Views