Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate user emails when making large numbers of users #155

Open
CactusWren2020 opened this issue Oct 13, 2021 · 1 comment
Open

Duplicate user emails when making large numbers of users #155

CactusWren2020 opened this issue Oct 13, 2021 · 1 comment

Comments

@CactusWren2020
Copy link

When I make large numbers of users (1000+), some user emails will be duplicated. This is problematic since Wordpress doesn't allow multiple users with the same email.

The rate of duplicate emails may be on the order of 2/1000.

One way of fixing this might be implementing a query for duplicate emails like:
select user_email, count(user_email) from wp_users group by user_email having count(user_email)>1;

and then deleting n - (n - 1) of the resulting duplicates.

@bordoni
Copy link
Owner

bordoni commented Nov 8, 2021

Sorry for the huge delay on my answering I had a huge project on the Company I work for that was taking a lot of my time, I will fix this problem.

Something very similar to what you suggested. I actually think this is a great addition. Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants