Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › eMember – Multisite user name issue
- This topic has 5 replies, 2 voices, and was last updated 10 years, 9 months ago by admin.
-
AuthorPosts
-
January 25, 2014 at 5:28 pm #10492perbr543Member
I have installed eMemeber on a 3.8 multisite and activated the options to integrate eMember with WordPress so a new WordPress user is created when a eMember user is created. The plugin is activated on a network level.
There seems to be problems when a new user is created with a user name that is already taken by another user on another subsite. A new wordpress user is not created, the already existing wordpress user on the other site is updated instead. I think the function that checks if the user name is taken should also check user names on all other sites.
January 26, 2014 at 5:16 am #60502adminKeymasterThats not how WordPress multi-site works. WordPress won’t let you create two users with the same “username” and “email address” in the network. What it does is, it adds access to the site in question for that user. We try to do the same thing that WordPress does in terms of user creation.
Do the following test for yourself:
Deactivate the eMember plugin temporarily (so emember is out of the picture). Now try to create two completely different users with the same username and email address in two sub-sites.
January 30, 2014 at 9:09 pm #60503perbr543MemberOk, but when two separate users can create an account on two separate sites using the same user name it will be problem. These two persons two separate accounts should not be mixed up to one. The first persons WP user accounts email adress will then be updated with the second persons email adress, password etc. The first person will not be able to login anymore.
I think you should add a validation that tests that the user name is not taken on any other site in the multisite (if WP user account integration is activated).
January 31, 2014 at 4:02 am #60504adminKeymasterYou are correct about the username being unique across all sites. We do check the username across all sites in a multi-site setup. I want to take a look at your site to see what it is doing on your site. I have sent you an email.
January 31, 2014 at 3:59 pm #60505perbr543MemberSorry but I dont want to give you administrator access to our site. I can try to give you the information you need anyway?
I think it is quite clear why I get this issue. When creating a new eMember user with for example “User” as username on site “Subsite2” and there are already a WP user with username “User” on site “Subsite1”, “Subsite2” is added to that user and the email and role are updated to the same as the new eMember user.
February 1, 2014 at 1:18 am #60506adminKeymasterokay I have made a little change in that username check function. I have sent you an updated copy to test.
-
AuthorPosts
- You must be logged in to reply to this topic.