Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit faf33e1

Browse files
committed
Merge pull request #376 from cloudspokes/thabo-I-129863-new-registration-emails
get_user_email_and_handle returns address instead of email
2 parents d28b047 + c9e095c commit faf33e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

actions/challengeRegistration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ var sendNotificationEmail = function (api, componentInfo, userId, activeForumCat
435435
submitURL : submitURL,
436436
reviewURL : reviewURL,
437437
template : template,
438-
toAddress : user.email,
438+
toAddress : user.address,
439439
senderName : "TC API"
440440
}, 'default');
441441
cb();

actions/user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function userActivationEmail(api, connection, next) {
211211
subject : activationEmailSubject,
212212
activationCode : activationCode,
213213
template : 'activation_email',
214-
toAddress : rs[0].email,
214+
toAddress : rs[0].address,
215215
fromAddress : process.env.TC_EMAIL_ACCOUNT,
216216
senderName : activationEmailSenderName,
217217
url : process.env.TC_ACTIVATION_SERVER_NAME + '/reg2/activate.action?code=' + activationCode,

0 commit comments

Comments
 (0)