throw new MembershipCreateUserException(MembershipCreateStatus.DuplicateUserName);
That way when you map the validation message in the account controller it will say
"User name already exists. Please enter a different user name."
Rather than
"The authentication provider returned an error. Please verify your entry and try again. If the problem persists, please contact your system administrator."
You are throwing a generic error when trying to register with a duplicate username
https://github.com/OdeToCode/Memflex/blob/master/src/FlexProviders/Membership/FlexMembershipProvider.cs#L54
I think it should be
That way when you map the validation message in the account controller it will say
Rather than