accounts
accounts copied to clipboard
RFC primary email concept
I was thinking, since a user can have multiple emails it's pretty hard to know on which email we need to send the emails (eg: your password has been changed). Maybe we should introduce a concept of a primary email so we know where the user want to be contacted (Github is doing it that way).
- create a
changePrimaryEmail
mutation that will change the user primary email. A user can only have one primary email at a time. - create a migration that take the first user email and set the
primary
field to true.
@TimMikeladze what is your opinion on that ?
I think this is a good idea.