Run post 'emailVerified' hook on server?


#1

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 !


#2

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


#3

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…


#4

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