paleobot / pbot-api

MIT License
2 stars 0 forks source link

Person nodes can be created with duplicate email addresses #12

Closed NoisyFlowers closed 2 years ago

NoisyFlowers commented 2 years ago

Email addresses need to be unique across Person nodes. Currently, it is possible to create Person nodes with duplicate email addresses through the api. This can happen through the create or update modes.

We need to prevent this by checking for existing Person nodes with the passed email address before proceeding with the create or update operation.

NoisyFlowers commented 2 years ago

This is in 8ebcd28e48bc507e799ab06ecdac837444da4620. That commit is on the about-those-groups branch and will get folded in when that branch is merged.

aazaff commented 2 years ago

Although see https://github.com/paleobot/pbot-dev/issues/43 for other user-related checks to be implemented in the future.