Server
Accounts.addEmail(userId, newEmail, [verified])
import { Accounts } from 'meteor/accounts-base'
Source Add an email address for a user. Use this instead of directly updating the database. The operation will fail if there is a different user with an email only differing in case. If the specified user has an existing email only differing in case however, we replace it.
Arguments
- userId String
-
The ID of the user to update.
- newEmail String
-
A new email address for the user.
- verified Boolean
-
Optional - whether the new email address should be marked as verified. Defaults to false.
Please login to continue.