Hi
I'm currently running two membership style sites on the same Kentico installation.
The problem I’m having is if I create a user account for one site, I can't create an independent user account with the same username for the other site.
I don't want to have one user account shared across the two site, as the sites are completely different and also don't want to confuse the user during registration by somehow relating the two sites. There really needs the ability to have two separate accounts (one registered to each site) both with possibly the same username (in cases where the same person tries to register on both sites - as people generally like to keep the same username).
I tried blanking out the following code in the RegistrationForm webpart:
if (UserInfoProvider.GetUserInfo(userName) != null)
{
lblError.Visible = true;
lblError.Text = ResHelper.GetString("Webparts_Membership_RegistrationForm.UserAlreadyExists").Replace("%%name%%", HTMLHelper.HTMLEncode(userName));
return;
}
...but even though this skips the form checking, I still get an application error about duplicate usernames in the
UserInfoProvider.SetUserInfo(ui); line.
Is there anyway to override this and allow accounts with the same username? It seams like it should be an obvious function, especially if the accounts belong to different sites.
Thanks,
Tim