From ffa9daf405c84468cc52e5bc3a34ddfad3ffd200 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Thu, 23 May 2013 10:54:53 +0200 Subject: made invitemail include invitelink! :D --- controllers/users.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/controllers/users.js b/controllers/users.js index befb8a4..59780de 100644 --- a/controllers/users.js +++ b/controllers/users.js @@ -185,15 +185,11 @@ exports.postProjectParticipants = function(req, res) { } console.log('made new access for user ' + newUser._id); message.to = newUser.email; - message.text = 'Du ble lagt til projektet "' + project.name + '"'; + message.text = 'Hei! Du har blitt invitert til å delta i et Divid-prosjekt! https://divid.no/invite/' + newUser.randomToken; server.send(message, function(err, message) { console.log(err || message);}); }); }); - - message.to = newUser.email; - message.text = 'Hei hå'; - server.send(message, function(err, message) { console.log(err || message);}); } else { // if the user exists, add him to the project Access.checkAccess(user._id, project._id, 0, function(err, acc) { if (err) return res.render('projectParticipants', { title: 'Nytt prosjekt - en feil oppstod', loggedin: true }); -- cgit v1.2.3