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

Technology 2015 01 22 #405

Merged
merged 6 commits into from
May 13, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions actions/memberRegistration.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ var registerUser = function (user, api, dbConnectionMap, next) {
function (callback) {
var url;
url = process.env.TC_ACTIVATION_SERVER_NAME + '/reg2/activate.action?code=' + activationCode;
if (user.regSource && user.regSource.match(/arena/)) {
url += '&destination=http%3A%2F%2Farena.topcoder.com';
}
api.log("Activation url: " + url, "debug");

api.tasks.enqueue("sendEmail", {subject : activationEmailSubject, activationCode : activationCode, template : 'activation_email', toAddress : user.email, fromAddress : process.env.TC_EMAIL_ACCOUNT, senderName : activationEmailSenderName, url : url, userHandle : user.handle}, 'default');
Expand Down