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);