From c4828f7ef43b051c544baa9f5671f5968e1cec48 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sun, 19 Oct 2014 23:55:45 +0100 Subject: [PATCH] Update web.js --- 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 08ce4d9..46367e6 100644 --- a/modules/web/web.js +++ b/modules/web/web.js @@ -129,7 +129,8 @@ var webInterface = function(dbot) { this.app.post('/login', passport.authenticate('local', { 'failureRedirect': '/login', - 'failureFlash': true + 'failureFlash': true, + 'routes': dbot.modules.web.indexLinks }), function(req, res) { if(req.body.redirect) { res.redirect(req.body.redirect);