Run post 'emailVerified' hook on server?

Hello !

I’ve got a server-side method to call on a newly created user account, but since it’s a bit heavy I’d like to know the user has validated their email before I run it.

Anyone have any ideas on how to hook into the emailValidation event server-side ?

Thanks in advance !

Hi,
if(Meteor.user().emails[0].verified){
//…
}

Cheers @nxcong !

In fact, I’m looking for a hook that gets called when the email is verified… since there’s no autorun on the server, i don’t think your idea would work for me…

i’m thinking the best bet might just be a collection hook on the server…

Hi,
https://gentlenode.com/journal/meteor-20-verify-an-email-with-meteor-accounts/42#4verifytheemailaddress