splendido / meteor-accounts-emails-field

A Meteor package to keep user.email up to date with email addresses used for 3rd-party account services
19 stars 9 forks source link

MongoDB index duplication value #34

Closed splendido closed 10 years ago

splendido commented 10 years ago

It happens that if a second account is created using a service with an email which is already used for another account, mongodb complains about duplicated value for the field emails on which there is and index with unique constraint.

I hoped this error was pushed up to the client eventually forbidding the new account creation, but this was not the case the final result being the new account be created WITHOUT the emails field.

with commit @98ed642bd4ea74e3fd963aa01028284f52bb8d52 I switched from emails to 'registered_emails` which will be kept in parallel to allow for user search by email address.

splendido commented 10 years ago

Should I change the name of the package from accounts-emails-field to accounts-registered-emails-field?