Accounts.onEnrollmentLink

Client

Accounts.onEnrollmentLink

import { Accounts } from 'meteor/accounts-base' Source

Register a function to call when an account enrollment link is clicked in an email sent by Accounts.sendEnrollmentEmail. This function should be called in top-level code, not inside Meteor.startup().

Arguments

callback Function

The function to call. It is given two arguments:

  1. token: A password reset token that can be passed to Accounts.resetPassword to give the newly enrolled account a password.
  2. done: A function to call when the enrollment UI flow is complete. The normal login process is suspended until this function is called, so that user A can be enrolled even if user B was logged in.
doc_Meteor
2016-05-29 17:17:33
Comments
Leave a Comment

Please login to continue.