diff --git a/browserid/lib/email.js b/browserid/lib/email.js index 99a04caa59c6d96dcb0e9c5eeda02d9c2be7e987..bc5fa584cdc0aaccdbd26c0f4c29b540e52415c5 100644 --- a/browserid/lib/email.js +++ b/browserid/lib/email.js @@ -6,9 +6,6 @@ mustache = require('mustache'); const template = fs.readFileSync(path.join(__dirname, "prove_template.txt")).toString(); -// config for mail server -emailconfig = require('./emailconfig') - exports.sendVerificationEmail = function(email, site, secret) { var url = "https://browserid.org/prove.html?token=" + secret; diff --git a/browserid/lib/emailconfig.js b/browserid/lib/emailconfig.js deleted file mode 100644 index 96268a1e1236d6126837a75055c30b47fb82fae8..0000000000000000000000000000000000000000 --- a/browserid/lib/emailconfig.js +++ /dev/null @@ -1,9 +0,0 @@ -var nodemailer = require('nodemailer'); - -nodemailer.EmailMessage.prototype.send = function(callback) { - this.prepareVariables(); - var headers = this.generateHeaders(), - body = this.generateBody(); - console.log(headers); - console.log(body); -}; \ No newline at end of file diff --git a/run.js b/run.js index 915da6e668ea5f275f8db68c9d14f65ecf1a9702..ff7ed63abaf4f4f0f3d83134d6b557f304ce69a8 100755 --- a/run.js +++ b/run.js @@ -13,6 +13,18 @@ var PRIMARY_HOST = "127.0.0.1"; var boundServers = [ ]; +// +// this is the test harness, don't send emails, dump them to stdout +// +var nodemailer = require('nodemailer'); +nodemailer.EmailMessage.prototype.send = function(callback) { + this.prepareVariables(); + var headers = this.generateHeaders(), + body = this.generateBody(); + console.log(headers); + console.log(body); +}; + // given a buffer, find and replace all production hostnames // with development URLs function subHostNames(data) {