From eed1027bb6da74929a46d24b67dce83e6d287e94 Mon Sep 17 00:00:00 2001 From: joates Date: Mon, 22 Sep 2014 20:31:30 +0100 Subject: [PATCH] v0.4.4-rc2: changed config.host (for deploying to test.squatconf.eu) --- config.js | 2 +- package.json | 2 +- src/email-submit.js | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/config.js b/config.js index 662be52..12b69c4 100644 --- a/config.js +++ b/config.js @@ -6,7 +6,7 @@ module.exports = require('rc')(name, { db_opts: { valueEncoding: 'json' } , db_path: join(cwd, 'db', name) , port: 8000 - , host: "squatconf.eu" + , host: "http://test.squatconf.eu" , email: { from : "no-reply@squatconf.eu" , subject : "Hello, everyone is welcome at SquatConf.." diff --git a/package.json b/package.json index f61159e..4de678d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squatconf-web", - "version": "0.4.3", + "version": "0.4.4", "description": "website for the squatConf conference", "main": "server.js", "scripts": { diff --git a/src/email-submit.js b/src/email-submit.js index 9d65363..211459f 100644 --- a/src/email-submit.js +++ b/src/email-submit.js @@ -32,8 +32,9 @@ module.exports = function(db) { // db write OK.. var nodemailer = require('nodemailer') , transporter = nodemailer.createTransport() - , url = 'http://squatconf.eu/confirm' - , link = url +'?email='+ email +'&token='+ obj.token +'\n\n' + , url = config.host +'/confirm' + , qstr = '?email='+ email +'&token='+ obj.token + , link = url + qstr +'\n\n' var opts = { from : config.email.from