From 9909fcb99553c81891eaea7034610d1febd60640 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Wed, 15 May 2013 10:37:34 +0200 Subject: moved postProjectParticipants to user controller --- controllers/system.js | 19 +------------------ 1 file changed, 1 insertion(+), 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 ', - 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); - }) + }); }); }); } -- cgit v1.2.3