Change email in merged accounts?


#1

Hi

I have a doubt for several day.

I implemented useraccounts with accounts-meld. https://github.com/splendido/meteor-accounts-meld

But. It is convenient implement an email change option? (In password accounts)

What happen if i have a facebook and password acount merged and i change the email in the password account? It’s correct?

If i merge a account i can see this document (mongo) collection.

“emails” : [
{
“address” : “XXX”,
“verified” : true
}
],
“registered_emails” : [
{
“address” : “XXX”,
“verified” : true
}
]

I need to change the “registered_emails” value? “emails” value? Both?

Thank you


#2

Haven’t used that particular package but I’d leave the Facebook, Google, github emails alone and just have a method that resolves an email address for a user prioritizing their password account email.