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:
parent
9705f308fd
commit
c4828f7ef4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user