3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

Update web.js

This commit is contained in:
Luke Slater 2014-10-19 23:55:45 +01:00
parent 9705f308fd
commit c4828f7ef4

View File

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