From 9325a6f1df741ca8ffb319b6cfcaaf193cd96eef Mon Sep 17 00:00:00 2001 From: Victor Parpoil Date: Fri, 31 Jan 2025 10:35:59 +0100 Subject: [PATCH] fix: remove console log of Urls when Meteor.isPackageTest --- packages/accounts-password/password_server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/accounts-password/password_server.js b/packages/accounts-password/password_server.js index 3498de2721..8d738b7fd5 100644 --- a/packages/accounts-password/password_server.js +++ b/packages/accounts-password/password_server.js @@ -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 };