aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-05-23 10:54:53 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-05-23 10:54:53 +0200
commitffa9daf405c84468cc52e5bc3a34ddfad3ffd200 (patch)
tree4dae6c5933d568784f5c67c7da95e7ca806f79b6
parentadded link to homepage on logo (diff)
downloadDivid-ffa9daf405c84468cc52e5bc3a34ddfad3ffd200.tar.gz
made invitemail include invitelink! :D
-rw-r--r--controllers/users.js6
1 files changed, 1 insertions, 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 });