mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
fix: remove console log of Urls when Meteor.isPackageTest
This commit is contained in:
@@ -697,7 +697,7 @@ Accounts.sendResetPasswordEmail =
|
||||
const options = await Accounts.generateOptionsForEmail(realEmail, user, url, 'resetPassword');
|
||||
await Email.sendAsync(options);
|
||||
|
||||
if (Meteor.isDevelopment) {
|
||||
if (Meteor.isDevelopment && !Meteor.isPackageTest) {
|
||||
console.log(`\nReset password URL: ${ url }`);
|
||||
}
|
||||
return { email: realEmail, user, token, url, options };
|
||||
@@ -733,7 +733,7 @@ Accounts.sendEnrollmentEmail =
|
||||
await Accounts.generateOptionsForEmail(realEmail, user, url, 'enrollAccount');
|
||||
|
||||
await Email.sendAsync(options);
|
||||
if (Meteor.isDevelopment) {
|
||||
if (Meteor.isDevelopment && !Meteor.isPackageTest) {
|
||||
console.log(`\nEnrollment email URL: ${ url }`);
|
||||
}
|
||||
return { email: realEmail, user, token, url, options };
|
||||
@@ -919,7 +919,7 @@ Accounts.sendVerificationEmail =
|
||||
const url = Accounts.urls.verifyEmail(token, extraParams);
|
||||
const options = await Accounts.generateOptionsForEmail(realEmail, user, url, 'verifyEmail');
|
||||
await Email.sendAsync(options);
|
||||
if (Meteor.isDevelopment) {
|
||||
if (Meteor.isDevelopment && !Meteor.isPackageTest) {
|
||||
console.log(`\nVerification email URL: ${ url }`);
|
||||
}
|
||||
return { email: realEmail, user, token, url, options };
|
||||
|
||||
Reference in New Issue
Block a user