openstax / accounts

OpenStax centralized authentication and accounts service

Home Page:https://accounts.openstax.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(Potentially) enforce uniqueness of verified emails

Dantemss opened this issue · comments

If 2 accounts verify the same email address, we can force them to be merged (or ask the user first).

If we decide to enforce this without giving the user an option, we can use a filtered index in PostgreSQL, plus a conditional validation in Rails.

Do not enforce uniqueness of unverified emails.

Before this happens (if ever), we need to have a plan for how we will merge users and how we communicate this to the apps. So this is in the far future.

Merging is gone...