diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-23 10:54:53 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-23 10:54:53 +0200 |
commit | ffa9daf405c84468cc52e5bc3a34ddfad3ffd200 (patch) | |
tree | 4dae6c5933d568784f5c67c7da95e7ca806f79b6 | |
parent | added link to homepage on logo (diff) | |
download | Divid-ffa9daf405c84468cc52e5bc3a34ddfad3ffd200.tar.gz |
made invitemail include invitelink! :D
-rw-r--r-- | controllers/users.js | 6 |
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 }); |