hagen / cliniconnect-api

0 stars 0 forks source link

Prevent changing email if the new email is already in use #60

Closed hagen closed 6 years ago

hagen commented 6 years ago

Don't let a user change their email to one in use. Check Auth0 for this, as it'll tell us if that email is already in use.

hagen commented 6 years ago

This may change if we ditch Auth0. Auth0 is making life hard.

hagen commented 6 years ago

Resolved. We first check if Auth0 can change the email. If it cannot (due to uniqueness violations) the operation fails and the user is notified.