diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-15 10:37:34 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-15 10:37:34 +0200 |
commit | 9909fcb99553c81891eaea7034610d1febd60640 (patch) | |
tree | 97f7d87fdc5626d1437d505be544b3e32ce64d3a | |
parent | post to project participants now goes to user controller (diff) | |
download | Divid-9909fcb99553c81891eaea7034610d1febd60640.tar.gz |
moved postProjectParticipants to user controller
-rw-r--r-- | controllers/system.js | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/controllers/system.js b/controllers/system.js index a7830f3..7b0a701 100644 --- a/controllers/system.js +++ b/controllers/system.js @@ -136,23 +136,6 @@ exports.projectParticipants = function(req, res) { } -exports.postProjectParticipants = function(req, res) { - var email = require('emailjs'); - - var server = email.server.connect(config.email); - console.log(server); - - var message = { - text: 'lol', - from: 'Divid <divid@divid.no>', - to: 'dennis.se@gmail.com', - subject: 'test' - } - - server.send(message, function(err, message) { console.log(err || message);}); - - res.redirect('back'); -} exports.projectPost = function(req, res) { @@ -206,7 +189,7 @@ exports.postProjectPost = function(req, res) { res.render('projectPost', { title: 'Legg til utgift - en feil oppstod', loggedin: true, req: req, project: project }); } return res.redirect('/project/' + project.shortURL); - }) + }); }); }); } |