Client
Accounts.onResetPasswordLink
import { Accounts } from 'meteor/accounts-base'
Source Register a function to call when a reset password link is clicked in an email sent by Accounts.sendResetPasswordEmail
. 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:
-
token
: A password reset token that can be passed toAccounts.resetPassword
. -
done
: A function to call when the password reset UI flow is complete. The normal login process is suspended until this function is called, so that the password for user A can be reset even if user B was logged in.
-
Please login to continue.