Redirect after logout (much classier)

This commit is contained in:
Thomas FORGIONE 2015-07-01 11:00:05 +02:00
parent 14c7a3600e
commit f18afb4471
1 changed files with 2 additions and 4 deletions

View File

@ -1,9 +1,7 @@
module.exports.index = function(req, res) {
req.session = null;
res.locals.session = null;
res.setHeader('Content-Type', 'text/html');
res.redirect('/');
res.render('../../index/views/index.jade', res.locals, function(err, out) {
res.send(out);
});
};