We're finding duplicate user accounts in our site. They belong to the same person, enroled in the same course more than once (we have open enrolments or enrolment keys on some courses). Everytime it is because the student has enrolled in the same course twice using two usernames. An example is John Smith. John signed up for the a course twice. Once with the username ‘jsmith@gmail.com’, and then again with the username ‘johnsmith@gmail.com’.
Is there any way to identify these folks who have more than one username and merge them or clear them out, being sure they are in fact the same person? We'd like to use some unique identifer at registration to prevent this, but if an individual has two email addresses, how can we prevent it?
Thank you.