On this line i am getting an exception -
OAuthWebSecurity.CreateOrUpdateAccount(provider, providerUserId, model.UserName);
System.Web.Security.MembershipCreateUserException: The username supplied is invalid.
The data going into this is
- provider - "facebook"
- providerUserId - "1321311387573991"
- model.UserName - "Max Payne"
The initialization works fine using
WebSecurity.InitializeDatabaseConnection("club", "User", "UserID", "UserName", autoCreateTables: true);
I cannot find any examples of why it says the username is invalid? Is there a criteria somewhere that defines what is a correct user name?