In my server device, I populate the database with some test users using the Accounts.createUser function. Now, I'm trying to figure out how to set the email checkbox of the created user as verified.
I tried setting the verified flag directly, but it does not work:
Meteor.users.findOne(userId).emails[0].verified = true
Dejan source share