From e757ee34df56558d42c8a3a08b4c40fb1d2ccffd Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 12 Aug 2013 22:14:14 +0000 Subject: [PATCH] fix web routes --- modules/web/web.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/web/web.js b/modules/web/web.js index 14f5c93..2040233 100644 --- a/modules/web/web.js +++ b/modules/web/web.js @@ -176,9 +176,10 @@ var webInterface = function(dbot) { return next(); } } else { + console.log(req); res.render('login', { 'message': 'You need to log in to access this module.', - 'redirect': module + 'redirect': req.originalUrl }); } } else {