fix: typo in apssword server

This commit is contained in:
Gabriel Grubba
2022-12-21 11:35:03 -03:00
parent 17b2eb4a8d
commit 7bbc67292c

View File

@@ -1040,9 +1040,9 @@ Accounts.createUserVerifyingEmail =
// that address.
if (options.email && Accounts._options.sendVerificationEmail) {
if (options.password) {
awaitAccounts.sendVerificationEmail(userId, options.email);
await Accounts.sendVerificationEmail(userId, options.email);
} else {
awaitAccounts.sendEnrollmentEmail(userId, options.email);
await Accounts.sendEnrollmentEmail(userId, options.email);
}
}