From c9e095c94013d3402f93d289e3b159d4d9faec96 Mon Sep 17 00:00:00 2001 From: Thabo Date: Mon, 13 Oct 2014 13:20:58 -0700 Subject: [PATCH] get_user_email_and_handle returns address instead of email --- actions/challengeRegistration.js | 2 +- actions/user.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/challengeRegistration.js b/actions/challengeRegistration.js index 0872a3a64..b5d186bfc 100644 --- a/actions/challengeRegistration.js +++ b/actions/challengeRegistration.js @@ -435,7 +435,7 @@ var sendNotificationEmail = function (api, componentInfo, userId, activeForumCat submitURL : submitURL, reviewURL : reviewURL, template : template, - toAddress : user.email, + toAddress : user.address, senderName : "TC API" }, 'default'); cb(); diff --git a/actions/user.js b/actions/user.js index bd5544abb..fd72b92ac 100644 --- a/actions/user.js +++ b/actions/user.js @@ -211,7 +211,7 @@ function userActivationEmail(api, connection, next) { subject : activationEmailSubject, activationCode : activationCode, template : 'activation_email', - toAddress : rs[0].email, + toAddress : rs[0].address, fromAddress : process.env.TC_EMAIL_ACCOUNT, senderName : activationEmailSenderName, url : process.env.TC_ACTIVATION_SERVER_NAME + '/reg2/activate.action?code=' + activationCode,