I get "The E-mail address is already in use." I would think this wouldn't happen since I put requiresUniqueEmail = false. I want to be able to create users with duplicate e-mail addresses.
you're absolutely right, just checked the code and umbraco does not allow users who's email has been registered before and doesn't take into account the requiresUniqueEmail from the web.config.
If you really need to move on with your solution and can't wait for a next release, build your own membership provider, inheriting from the umbraco membership provider and override the CreateUser() method.
if (Member.GetMemberFromLoginName(username) != null)
status = MembershipCreateStatus.DuplicateUserName;
elseif (Member.GetMemberFromEmail(email) != null)
status = MembershipCreateStatus.DuplicateEmail;
the above snippet should be replaced with your own code so it checks the web.config settings for requiresUniqueEmail
Log this on Codeplex please so it can be voted up and/or create a patch!
Membership: Allow for duplicate e-mails
I'm using the Umbraco membership provider and I have it setup like this:
But when I do
I get "The E-mail address is already in use." I would think this wouldn't happen since I put requiresUniqueEmail = false. I want to be able to create users with duplicate e-mail addresses.
Does anyone know how to get around this problem?
Hi Nate,
you're absolutely right, just checked the code and umbraco does not allow users who's email has been registered before and doesn't take into account the requiresUniqueEmail from the web.config.
If you really need to move on with your solution and can't wait for a next release, build your own membership provider, inheriting from the umbraco membership provider and override the CreateUser() method.
the above snippet should be replaced with your own code so it checks the web.config settings for requiresUniqueEmail
Log this on Codeplex please so it can be voted up and/or create a patch!
Cheers,
/Dirk
is working on a reply...