forked from GitHub/dbot
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', {
|
this.app.post('/login', passport.authenticate('local', {
|
||||||
'failureRedirect': '/login',
|
'failureRedirect': '/login',
|
||||||
'failureFlash': true
|
'failureFlash': true,
|
||||||
|
'routes': dbot.modules.web.indexLinks
|
||||||
}), function(req, res) {
|
}), function(req, res) {
|
||||||
if(req.body.redirect) {
|
if(req.body.redirect) {
|
||||||
res.redirect(req.body.redirect);
|
res.redirect(req.body.redirect);
|
||||||
|
Loading…
Reference in New Issue
Block a user