splendido / meteor-accounts-emails-field

A Meteor package to keep user.email up to date with email addresses used for 3rd-party account services
19 stars 9 forks source link

Function to update registered emails for all existing users #37

Closed rbabayoff closed 9 years ago

rbabayoff commented 9 years ago

To maintain data consistency with accounts that were created before package was installed.

splendido commented 9 years ago

Thic can easily be added I guess. Would you put it as a function or method? A server-side method could be good, but then it would be also available from the client side... (should not create any problems, but perhaps not the best thing to have...)

...nothing automatic at startup hence?

rbabayoff commented 9 years ago

A function would be better. I actually want to use it in a meteor command line program I'm creating for sending out emails. We have a package and tools that enable you to create command line programs with meteor:

https://atmospherejs.com/practicalmeteor/mcli

Regarding startup, better not, I think, in case the users collection is big. It should be a one off thing that people should run after installing the package. There is a pr in meteor that will allow to register commands with the meteor command line tool, https://github.com/meteor/meteor/pull/2718, so it's a great candidate for just that.

splendido commented 9 years ago

Ok, agreed. I'll try to add this tomorrow...

Thanks!

splendido commented 9 years ago

A little late, sorry!

See Advanced API and v1.2.0

rbabayoff commented 9 years ago

No worries :)