Hello Moodlers
We are investigating the possiblity of allowing authentication to our Moodle using external DB.
Based on our tests it seems that Moodles does not prevent the creation of accounts when there is a duplicated email address.
If for example I already have a user in Moodle, registered manually with email xxx@email.com, and I add another user to the external DB with the same email xxx@email.com Moodle will not give an error.
The new user will be added to the mdl_users tables just fine.
The same will happen if I have 2 users in the external DB with the same email but different username, lets say
username1, xxx@email.com
username2,xxx@email.com
I found an old forum post about this here but there are no solutions or explanation.
Is this a bug, or it is like this by design?
Kind regards
Christos