Basically, I am able to REPRO this problem:
If 2 users with different usernames are setup to have the same email address, then only one of them would ever be able to reset their password using forgot password. I assume any opt-out email subscription tasks may also not work correctly.
Is this expected behavior in AC?
I understand that the UserName field is checked for uniqueness. I also understand that when a user first registers or when an Admin creates a new user, their email is used as the username (by default).
Since AC allows users/admins to change usernames, uniqueness is also checked on those related pages. This is all fine, and works as expected.
Now, for email addresses, I would think this would be same case.
Based on the following:
1 UserDataSource.GetUserIdByEmail(string email) RETURNS a single int
2 According to help page for AC Customer Profile http://help.ablecommerce.com/mergedProj ... rofile.htm ....
...There can never be duplicate email addresses in the store....
(perhaps the comment was mainly for username purposes)
3 I see on AbleCommerce.Admin.People.Users.AccountTabPage AccountTabPage.ascx, there is a Custom Validator called EmailAvailableValidator:
Code: Select all
<asp:CustomValidator ID="EmailAvailableValidator" runat="server" ControlToValidate="Email" ErrorMessage="The email address '{0}' is already registered to another user." Text="*" />
I've confirmed this in:
[*] AC GOLD build 5078
[*] AC 7.0.4 build 13424
Thanks for any help. Perhaps I am just missing the obvious...